From: Arjen M. <arj...@wl...> - 2007-01-18 07:39:15
|
Virden, Larry W. wrote: >Most of the solutions I've seen on the wiki require a change to the >code. And that's okay for something simple. The fancier programs, like >Komodo, or even RamDebugger, etc., are wonderful things that allow one >to do all sorts of advanced work. I'm just thinking that, if we could >address something relatively simple, something similar, say, to Perl's >-d debugger or even simpler if necessary, that would go a ways towards >helping the simple needs. > >Arjen, I've not played with your code, but it looks like it could be a >good basis, as does Richard's. Shoot, even the simple command tracing >proc definitions (perhaps with something to turn the feature on and off) >would be a start... > > There is no need to change the code you want to debug, as the simple debugger package can be written as an application: tclsh debugger.tcl myapp.tcl a b c where debugger.tcl looks like: package require Debug ;# Get the simple debugger of your choice set appname [lindex $argv 0] set argv [lrange $argv 1 end] source $appname Regards, Arjen |