Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: ASPN perldebug magic?

by alien_life_form (Pilgrim)
on Oct 31, 2002 at 09:03 UTC ( [id://209372]=note: print w/replies, xml ) Need Help??


in reply to Re: ASPN perldebug magic?
in thread ASPN perldebug magic?

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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://209372]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found