in reply to Re^4: How can I print variable contents from the debugger non-interactively? (@DB::typeahead)
in thread How can I print variable contents from the debugger non-interactively?
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How can I print variable contents from the debugger non-interactively? (@DB::typeahead)
by davehorner (Scribe) on Jul 17, 2017 at 20:26 UTC | |
by LanX (Saint) on Jul 17, 2017 at 20:37 UTC |