Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Perl Debugger rcfile on Windows

by maxx27 (Novice)
on Nov 29, 2017 at 03:55 UTC ( [id://1204496]=note: print w/replies, xml ) Need Help??


in reply to Perl Debugger rcfile on Windows

I have the same problem on Windows Strawberry Perl. Unfortunately I found only one way to make it work - patch perl5db.pl
$ diff perl5db.pl.old perl5db.pl.new 1238c1238 < $rcfile = ((-e $dev_tty) ? ".perldb" : "perldb.ini"); --- > $rcfile = ".perldb"; 1289c1289,1291 < return 0 if $mode & 022; --- > if( $^O ne 'MSWin32' ) { > return 0 if $mode & 022; > } 1299a1302,1305 > elsif ( defined $ENV{HOMEDRIVE} && defined $ENV{HOMEPATH} && -f "$EN +V{HOMEDRIVE}$ENV{HOMEPATH}/$rcfile" ) { > safe_do("$ENV{HOMEDRIVE}$ENV{HOMEPATH}/$rcfile"); > } >
I like more unix name ".perldb" instead of "perldb.ini". Also I have set "$ENV{HOMEDRIVE}$ENV{HOMEPATH}" rather than "$ENV{HOME}". Also I changed logic about file permission for Windows platform.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found