Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Have Perl debug automatically show modified values (updated)

by LanX (Saint)
on Nov 19, 2021 at 09:50 UTC ( [id://11138938]=note: print w/replies, xml ) Need Help??


in reply to Have Perl debug automatically show modified values

> show modified variables values each time n, s debug step is done ?

Have a look at < and { command family, IIRC you can tell them what to do for each prompt while stepping thru code

update

DB<1> h > ? List Perl commands to run after each prompt. expr Define Perl command to run after each prompt. > expr Add to the list of Perl commands to run after each promp +t. * Delete the list of Perl commands to run after each prompt. DB<2> h } is not a debugger command. DB<3> h { db_command Define debugger command to run before each prompt. ? List debugger commands to run before each prompt. { db_command Add to the list of debugger commands to run before eac +h prompt. * Delete the list of debugger commands to run before each + prompt. DB<4> h < ? List Perl commands to run before each prompt. expr Define Perl command to run before each prompt. < expr Add to the list of Perl commands to run before each prom +pt. * Delete the list of perl commands to run before each +prompt. DB<5>

"Perl commands" => Perl code

"debugger commands" => those one letter commands listed with h h

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-25 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found