in reply to ASPN perldebug magic?

What was the value of PERL5DB before you set it to use perl5db.pl? The two ways to influence the behaviour of the Perl debugger seem to be through the PERL5DB environment variable, as you did, or through a .perldb file in your home directory - although I'm not sure what "home directory" translates to on Win32. Did the IDE perhaps fiddle with one of these?

CU
Robartes-

Replies are listed 'Best First'.
Re: Re: ASPN perldebug magic?
by alien_life_form (Pilgrim) on Oct 31, 2002 at 09:03 UTC
    Greetings,

    the standard (perl) environment (no fiddling) is as follows:

    PERL5DB [unset] PERLDB_OPTS=RemotePort=127.0.0.1:2000
    this will start the IDE. After fiddling:
    PERL5DB=BEGIN {require 'perl5db.pl';} PERLDB_OPTS [unset]
    What makes (half of) the difference is PERLDB_OPTS: if it is set, the GUI starts no matter what PERL5DB is set to...

    <slaps loudly on forehead>: OK, so now I know. AS actually does two things:

    1. Hooks into the RemotePort option of perl5b.pl to direct the debugger to the GUI but also....
    2. sets a registry key (HKLM\Software\perl\PERL5DB) to its own version of perldb (perl silently honors these keys as if they were environment variables).
    3. So restoring the original behavior one has to both unset PERLDBOPTS *and* PERL5DB
    Quite tricky (perhaps too much so...).
    Thanks for pointing in me in the right direction - now the smoke has cleared and the mirrors are broken :-)
    Cheers,
    alf
    You can't have everything: where would you put it?