Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Perl Debugger rcfile on Windowsby VinsWorldcom (Prior) |
on Jul 31, 2015 at 19:14 UTC ( [id://1137043]=perlquestion: print w/replies, xml ) | Need Help?? |
VinsWorldcom has asked for the wisdom of the Perl Monks concerning the following question: Windows Monks - has anyone gotten the Perl Debugger rcfile (.perldb / perldb.ini) to work on Windows? I can use the Perl debugger fine with 'perl -d <progfile> [args]', but if I have a .perldb (perldb.ini) file defined, I get mixed, unsatisfying results. I'm on Windows 7 x64 with Strawberry 5.18.1. Essentially I've tried .perldb and perldb.ini in both the current directory and my home directory. It seems only perldb.ini is recognized and when it finds it, regardless of location, I get the error:
So I've tried to modify permissions of the perldb.ini file on Windows by breaking the parent inheritance on that file and making sure I'm the owner and the only one with "Full Permissions" - which still doesn't fix the problem. The following transcript shows perldb.ini in current directory with the error, then moved to .perldb and no error, but no execution. Then moved .perldb to my home directory and the same as previous; finally moved .perldb to perldb.ini in home directory with the error again.
Anyone get this working successfully? UPDATE: I've narrowed it down in perl5db.pl. 'use vars qw($rcfile);' does a check which for Windows will return 'perldb.ini' regardless explaining why '.perldb' has no effect, despite POD about running interactive vs non- mode. Then, that 'perldb.ini' file is (eventually) run through "sub is_safe_file" which does a 'stat()' and on Windows, is obviously not returning the proper value to create a false when bit-masked with 022. See the function in perl5db.pl for more details as well as POSIX::S_ISDIR() with $stat->mode values from Windows vs. Linux, which has the mode value I'm getting "33206" on Windows. That being said, I could do all sorts of things to fix this by editing perl5db.pl, but is there a way / argument /something to get this to work without me monkeying with a module's code?
Back to
Seekers of Perl Wisdom
|
|