tcldebugger conditional breakpoints

Posted by sdeacon on 2014-02-06 15:26
Forums: TDK discussion | OS: All / Any

Is there any way to set conditional breakpoints in the debugger, perhaps through the 'eval console' ?

For example, if I have a large list (foreach block $blocks {...}), can I do something like the following :

set a breakpoint at line x when $block equals "abc"

ActiveState Staff
Fri, 2014-02-07 13:18

There are only two supported types of breakpoints in the TDK Debugger.
Line breakpoints - which trigger when you reach a specific line
Variable breakpoints - which trigger when a variable changes.

You might be able to get close to what you want with a Variable breakpoint, but the condition you describe would technically require a combination of both linenumber and variable value.

Komodo IDE does support conditional breakpoints for Tcl:

sdeacon | Fri, 2014-02-07 15:35

Thanks for your answer...

As a workaround, I can always add a temporary condition to my source code to provide a line that the debugger stop at. I was just hoping there would be some kind or "breakpoint" command available to use instead of altering my code...

I realize that Komodo is a sophisticated commercial product, but has anyone considered adding a basic version of this kind of functionality to the TDK debugger ?

When debugging scripts that act on huge data files, this would definitely be very useful...