Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by Athanasius (Archbishop)
on Jul 03, 2015 at 14:04 UTC ( [id://1133101]=note: print w/replies, xml ) Need Help??


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

Hello schrodinger, and welcome to the Monastery!

You should also look at the module Pry, by the Monastery’s own tobyink. From the documentation:

This module gives you a function called pry that you can drop into your code anywhere. When Perl executes that line of code, it will stop and drop you into a REPL. You can use the REPL to inspect any lexical variables (and even alter them), call functions and methods, and so on.
...
Once you've finished using the REPL, just hit Ctrl+D and your code will resume execution.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

  • Comment on Re: Stopping script execution from within the code like Python's pdb
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-25 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found