This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Insight and the debug command.


On Tue, 16 Oct 2001, Ian Roxborough wrote:

> Haven't seen a debug window yet. Can I have it output to
> a file? Is there a command line flag for turning on
> the debug window?  Something like "gdb -debug" maybe?

Ahhh.. Well, my friend, you are in for a treat.

There are several ways to open Insight's debug window:

1) set GDBTK_DEBUG=2 in environment before running Insight to have the
   debug window open immediately
2) set GDBTK_DEBUG=1 to have it appear in the View menu
3) hit Ctrl-F11 in SrcWin to open it
4) enter "tk ManagedWin::open DebugWin" in Console window to open it

The "debug" interface is really deprecated. Use "dbug" instead:

proc dbug {LEVEL {msg {}}}

LEVEL = I (information -- shows up in green in DebugWin)
        W (warning -- shows up in yellow in DebugWin)
        E (error -- shows up in red in DbugWin)

DebugWin can also resource tcl files for you. Pretty handy!
Keith



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]