ActiveState Community

TCL debugger grinds to a halt

Posted by niobe on 2009-09-29 21:38
OS: Windows

I added some simple decryption using Tcllib's aes to my script and now the debugger hangs for 3-4 minutes before finishing. Without loading the package it takes a few seconds.

Is there anything I can do about this? I don't need anything in this package debugged so I want to tell the debugger to ignore it. Maybe an option to not debug certain namespaces would solve this.

troyt | Thu, 2009-10-01 13:45

I was unable to reproduce any noticeable delays when I tried debugging with this sample example:

http://wiki.tcl.tk/14648

Could you post some code that reproduces this problem?

niobe | Thu, 2009-10-01 19:00

I extracted all the relevant code from the application but I can't reproduce the delay.

Basically there is an 'if' on whether a file that needs to be read is encrypted or not. If it is obviously aes package is loaded and the decrypt procs run. So when I copy out everything under the 'encrypted' branch to a fresh script the debugger takes only a few seconds.

It doesn't make sense to me how code that is not being run can affect the debugger..

Hm.
andreas.kupries | Mon, 2009-10-05 09:42

Even code not being run is instrumented for debugging, this happens at the time the file is loaded (sourced actually).

niobe | Mon, 2009-10-05 17:26

Ok, I'll try to replicate with the full libraries.