Hi LanX,

Yes, that solves my problem.

I can generate this line dynamically from history before entering the debugger to get to some deeply nested call.

Thanks a lot !!!

sub afterinit { push @DB::typeahead, "b 4", "b 6"; }
As I discovered today this trick also works from inside the debugger:
DB<1> push @DB::typeahead, 'c 7','n','c' auto(-3) DB<2> c 7 main::(escape_from_deeply_nested_calls.pl:7): 7: say "\nProgram ended"; auto(-2) DB<3> n d1e1f1f2f3f4f5f6f7f8f9f10-f11-f9-f8-f7-f6-f5-f4-f3-f2-f1-f0-e1-d1 Program ended main::(escape_from_deeply_nested_calls.pl:8): 8: say "Failure_code is $global_failure"; auto(-1) DB<3> c Failure_code is 14 Debugged program terminated. Use q to quit or R to restart,

In reply to Re^2: Replaying debugger commands from history by likbez
in thread Replaying debugger commands from history by likbez

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.