This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.




observe(n)                                                                                        observe(n)



____________________________________________________________________________________________________________

NAME
       observe - Runtime debugging output in TkCon

SYNOPSIS
       observe command cmdname ?maxlevel?

       observe cdelete cmdname

       observe cinfo cmdname

       observe variable varname operation ?args?

       observe vdelete varname operation

       observe vinfo varname

____________________________________________________________________________________________________________

DESCRIPTION
       This  command  provides  runtime debugging output for variables and commands without the need to edit
       your code.  For variables, the underlying mechanism uses  trace  and  dump  var.   For  commands,  it
       renames  the  observed procedure and uses a special wrapper procedure.  WARNING: using this procedure
       after checkpointing state will result in major problems if you clean state because the renamed (true)
       commands will be lost.

       This procedure is experimental.  Comments are encouraged.

       observe command cmdname ?maxlevel?
              This  will  create  a wrapper command which prints out (using dump) the call stack to the con-sole. console.
              sole.  maxlevel represents the maximum number of levels  of  the  call  stack  which  will  be
              printed (defaults to 4).

       observe cdelete cmdname
              Removes the wrapper around an observed command.

       observe cinfo cmdname
              Prints out useless info.

       observe variable varname operation ?args?
              Currently  a  wrapper around trace that uses dump to print out the value of the named variable
              whenever the specified operation on that variable occurs (must be read, write or unset).

       observe vdelete varname operation
              Deletes the trace wrapper around the named variable.

       observe vinfo varname
              Prints out trace info about the named variable.


SEE ALSO
       dump(n), idebug(n), tkcon(1), tkcon(n), tkconrc(5)

KEYWORDS
       Tk, console, debug

COPYRIGHT
       Copyright (c) Jeffrey Hobbs <jeff at hobbs.org>




TkCon                                                2.5                                          observe(n)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...