Let me be explicit on this one: I don't want to start another 'using a debugger is good or bad'-flamewar here again, I just have a question regarding the use of Devel::ptkdb...
I regularely use
Devel::ptkdb to debug my programs. A colleague of mine came up with a question last week, to which I didn't have the answer. That's because I never used multithreading and forked processes before.
He tested
Devel::ptkdb on a program that used fork(). The debugger just hang with an error saying
Xlib: unexpected async reply (sequence 0x5f1)!
X Error of failed request: BadIDChoice (invalid resource ID chosen fo
+r this connection)
Major opcode of failed request: 53 (X_CreatePixmap)
Resource id in failed request: 0x4000078
Serial number of failed request: 1564
Current serial number in output stream: 1480
Does anyone know how to prevent this behaviour or how to debug multithreading perlscripts with a graphical debugger?
Jouke Visser, Perl 'Adept'
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.