Greetings,

I am experimenting with ASPN PDK, which comes with a (rather cool, as even a non IDE person like me has to admit) graphical debugger.

However I am also deeply addicted to the 'perl -e 42 -d' thingy to get a perl shell...
And I found out that that does not work any more! Any perl -d attempt fires up the graphical debugger. To my utter surprise, this also happens with an unrelated native 5.8 build on the same Win32 box.

After some digging in the docs, it turns out that setting a couple of environment variables (PERLDBOPTS and PERL%DB), with PERL5DB set to

BEGIN { require 'perl5db.pl';}
resets my beloveed CLI behavior.

But...
How does it do it? Meaning, how can the perldebug influence a perl interpreter it knows nothing about and which should not know about perldebugger?

Just curious. I tried to delve in the perl5db.pl and perldoc perldebug, but I could not spot the magic.

Cheers,
alf


You can't have everything: where would you put it?

In reply to ASPN perldebug magic? by alien_life_form

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.