Not quite. There doesn't seem to be an option to run the script at the start.

I didn't know you could have a per-directory .perldb file. I was using the DB::parseoption sub instead. (I forgot the DB:: in my original post)

With NonStop the script would load the debugger, run the script and exit (instead of dropping back to the debugger).

I tried kill INT, $$; at the end of the script, to no avail:

$ ./dbg Default die handler restored. Loading DB routines from perl5db.pl version 1.07 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. NonStop = '1' DBI::CODE(0x82f8a04)(/usr/local/lib/perl/5.6.1/DBI.pm:419): 419: return unless defined &DBI::trace_msg; # return unless boo +tstrap'd ok DB<1> x $u 0 undef DB<2> c Debugged program terminated. Use q to quit or R to restart, use O inhibit_exit to avoid stopping after program termination, h q, h R or h O to get additional info. DB<2> x $u 0 MY::User=HASH(0x8505bec) 'id' => 1 'name' => 'Brad Bowman' 'passwd' => 'password' 'username' => 'bsb' DB<3>

In reply to Re: Re: Automatically "continue" script under the debugger by bsb
in thread Automatically "continue" script under the debugger by bsb

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.