Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Stopping script execution from within the code like Python's pdb

by QM (Parson)
on Jul 03, 2015 at 14:10 UTC ( [id://1133103]=note: print w/replies, xml ) Need Help??


in reply to Stopping script execution from within the code like Python's pdb

While Corion has answered the primary question, I have very rarely found it necessary to do this. Rather, just loading the script in the debugger and running it from there is usually the way to go.

perl -d script.pl some arguments here

Only if the script is very CPU intensive, and the normal debugger slowdown (~10x in my experience) is untenable, would I resort to $DB::Single.

Is there a reason you don't want to use the normal breakpoint features in Perl's debugger?

-QM
--
Quantum Mechanics: The dreams stuff is made of

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found