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?

There is already a whole trace infrastructure apart from the debugger.

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!

  • Comment on Re^5: How can I print variable contents from the debugger non-interactively? (@DB::typeahead)
  • Select or Download Code

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

    > I've shown you already 3 approaches, with varying details and footprint
    I very much appreciate your responses!

    > There is already a whole trace infrastructure apart from the debugger. the debugger IS eventually for interaction.
    I've seen Devel::Trace but that also seems to only print the statements and not the data. If there is a whole trace infrastructure (/w data printing capabilities) outside of the debugger I am not aware of it and would appreciate a pointer if so.