How to debug a tcl script which is argument to an executable?

Posted by user321047 on Stack Overflow See other posts from Stack Overflow or by user321047
Published on 2010-04-20T07:12:03Z Indexed on 2010/04/20 12:43 UTC
Read the original article Hit count: 581

Filed under:
|
|

I have a application which takes tcl script as argument. I want to debug tcl script when the application processes it.

My development environment consists of Dynamic Languages Toolkit from www.eclipse.org/dltk along with Active state remote debugger -dbgp_tcldebug. I am able to debug the individual tcl scripts with this setup.

I created a tcl project in eclipse and added 'startup.tcl' and 'argumentScript.tcl' scripts and added following command to the startup script,

set ExecutableName "xyz.exe"

set returnValue [catch {eval exec $ExecutableName "argumentScript.tcl" } result]

My debugger works fine with 'startup.tcl' script. I added the breakpoint in 'argumentScript.tcl' but it is not working. How can I debug the "argumentScript.tcl" script ?

Edit: A solution without using eclipse environment is Tcl Dev Kit with remote debugging feature.

© Stack Overflow or respective owner

Related posts about tcl

Related posts about debugger