ActiveState Powered by ActiveState

ActiveState Community


TclDevKit Thread Debugging

Posted by tcltron on 2008-02-23 22:16
OS: All / Any

Setting break points for Tcl threads does not work.
Before I start the debugger if I set a break point in the main thread a break will occur as expected. If the same is done within a thread source that is called and created by the main no break occurs.
Is thread debugging for TclDevKit supported? If not, is this a future feature? If yes, then how to?
I am evaluating the product and this is a crucial feature for my decision to purchase.
Thanks.

jeffh | Mon, 2008-02-25 19:17

The Tcl Dev Kit has the core functionality to support threaded debugging, but it is not currently all exposed in the cleanest of ways. What is necessary is to watch the thread::create or similar calls to attach the debugger to the spawned threads. This can be done by hand. We do plan to try and make this automagically detected in a future version, but haven't finished that work yet.

-->