in reply to Re: Debugging Threads
in thread Debugging Threads

Aha... Is there a way to go step by step in the code somehow?

Replies are listed 'Best First'.
Re^3: Debugging Threads
by zentara (Cardinal) on Dec 12, 2005 at 18:27 UTC
    That is something I would like to learn myself. :-) If you have perl and Tk compiled with debugging support, and you havn't stripped them, you can run start perl under gdb, then run the Tk program, and watch for what happens. I'm only rudimentarily familiar with doing it, so you might want to google for "gdb perl Tk" or "debugging perl tk", and see what you can come up with.

    Maybe you could run it under ptkdb, and see what happens when you step thru it, but with threads( and Tk not being thread-safe), the error will be "weird" and may not follow a repeatable pattern. It will just happen seemingly at random times.


    I'm not really a human, but I play one on earth. flash japh
      Hey, Devel::ptkdb is fonky! Thanks!