Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^6: Debugging a program with Tk

by hexcoder (Curate)
on Sep 19, 2019 at 09:08 UTC ( [id://11106368]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Debugging a program
in thread Debugging a program

When using Tk, I observed that my custom debugging signal handler for $SIG{__WARN__} is overwritten by Tk :(.
So I needed to reoverwrite it after use Tk; with my own one again.

use Tk; ... # if running with debugger, reinstall signal handler if (defined $DB::single) { # avoid warning: '$DB::single' is only used once $DB::single = $DB::single; DB::afterinit(); }
Unfortunately this requires modification of the script.

Any suggestions for enhancements are welcome.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11106368]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-23 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found