logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

observe - Runtime debugging output in TkCon

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.

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

       observecdeletecmdname
              Removes the wrapper around an observed command.

       observecinfocmdname
              Prints out useless info.

       observevariablevarnameoperation ?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).

       observevdeletevarnameoperation
              Deletes the trace wrapper around the named variable.

       observevinfovarname
              Prints out trace info about the named variable.

Keywords

       Tk, console, debug

Name

       observe - Runtime debugging output in TkCon

See Also

dump(3tk), idebug(3tk), tkcon(1), tkcon(3tk), tkconrc(5)

Synopsis

observecommandcmdname ?maxlevel?

       observecdeletecmdnameobservecinfocmdnameobservevariablevarnameoperation ?args?

       observevdeletevarnameoperationobservevinfovarname

________________________________________________________________________________________________________________

See Also