Mod /
Ndebug
Search:  


Table Of Contents (show)

  1. 1. Ndebug
  2. 2. Re-enabling

1.  Ndebug

Ndebug provides a standard way to disable all debugging and introspection capabilities in an production application. With the single call

  Mod ndebug

an application will do the following:

  • All development macros (.Warn/.Trace/etc) become NOOPs.
  • The send command is deleted to disable remote commands.
  • Disables the <Control-Alt-Shift-2> edit window dialog.
  • Disables the <Control-Alt-Shift-space> console.

2.  Re-enabling

There are two basic ways to get a console (and thereby re-enable introspection).

One is to have the application use Signal and associate a signal with console show.

If that was not done, you can try using gdb as in the following (after substituting 1234 for the PID)

  gdb wize 1234
  p Tcl_Eval(tclMainInterp, "console show")  
  q

Once the console is up, issue:

  Wiz::debug 1

Then you should be able to use <Control-Alt-Shift-2>.

© 2008 Peter MacDonald

Page last modified on November 30, 2009, at 07:45 PM