Please note the debugger IS eventually for interaction.
And I've shown you already 3 approaches, with varying details and footprint
> push @DB::typeahead, \"a 119 p \$var\";
Please note again that a , b and w only take real Perl code
but p is a debugger command
Commands accepting debugger commands are documented with db_cmd or db_command
DB<27> 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 ea +ch prompt. { * Delete the list of debugger commands to run before eac +h prompt.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^5: How can I print variable contents from the debugger non-interactively? (@DB::typeahead)
by LanX
in thread How can I print variable contents from the debugger non-interactively?
by davehorner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |