This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Insight and the debug command.
- To: Ian Roxborough <irox at redhat dot com>
- Subject: Re: Insight and the debug command.
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Tue, 16 Oct 2001 10:36:07 -0700 (PDT)
- cc: <insight at sources dot redhat dot com>
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