Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Enbugger on Windows (add your own -d)

by morgon (Deacon)
on Jan 20, 2012 at 15:15 UTC ( #948980=note: print w/ replies, xml ) Need Help??


in reply to Re: Enbugger on Windows (add your own -d)
in thread Enbugger on Windows

This is unfortunately not working for me.

In my perl2exe-compiled binary $^X is set to the exe itself and the -d does then not start the debugger but is passed on to the application.

Any ideas on what I could try?


Comment on Re^2: Enbugger on Windows (add your own -d)
Re^3: Enbugger on Windows ($^X)
by tye (Cardinal) on Jan 21, 2012 at 02:08 UTC

    Sad that perl2exe breaks $^X. They probably consider this a "feature". You could try asking the OS more directly:

    use Win32::API (); sub GetPerlExePath { my $f= 'GetModuleFileName'; my $m= Win32::API->new( 'kernel32', $f, 'III', 'I' ) or die "Can't find $f() in kernel32.dll: $^E\n"; my $l= 512; my $s= ' ' x $l; my $a= unpack "I", pack "P", $s; my $r= $m->Call( 0, $a, $l ); die "$f failed: $^E\n" if ! $r; $s= substr( $s, 0, $r ); return $s; }

    - tye        

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-09-22 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls