View Full Version : How to add TCL variables to the watch list

I've downloaded the trial version of the IDE in hopes that I could use it to step through my TCL code and watch variables. These features don't seem to work for me. Is there addtional configuration requred to add variables to the watch list or to step through the code one line at a time?

Please have a look at the documentation for Debugging Tcl
24 (http://docs.activestate.com/komodo/8.5/debugtcl.html).
Basically you'll first want the debugger to stop at a breakpoint, after that you can go through your code line by line, if that's what you wish.

Thanks for the information, but I got lost right away. The second instruction is to login to the remote machine, but there is no remote machine. I am installed an running on a local machine. The third step says to open a command window and run the command: dbgp_tcldebug, but this is an unknown command. Perhpas there is a path setting someplace?
Question: If the IDE settings are set for TCL should I expect for it to step through the code out-of-the-box? I have an option to "watch a variable" but nothing happens when I select that option. I can successfully run the code if I "run without debugging." But, the IDE is silent when I try to do anything in the debug menu.

"Remote Debugging" is a section, not a step. If it does not apply to you - don't use it http://forum.komodoide.com/images/emoji/apple/wink.png
Please read the Configuring Local Tcl Debugging
6 (http://docs.activestate.com/komodo/8.5/debugtcl.html#Configuring_Tcl_Debugger) and Invoking the Tcl Debugger Application
4 (http://docs.activestate.com/komodo/8.5/debugtcl.html#Invoking_the_Tcl_Remote_Debugger)sec tions.

Generally you should be able to debug Tcl with Komodo out-of-box, provided you have a Tcl interpreter installed (separate from Komodo) and configured Komodo to use that interpreter.
That said, I'm sure there are some edge cases - what type of Tcl application are you debugging?
BTW, you can try the sample tcl file (included with Komodo) for simple debugging - use the View > Start Page and then click on the Sample Project link, then open the tcl_sample.tcl file and use Debug > Go/Continue to launch it. You can put breakpoints as you want.