aufflick has asked for the wisdom of the Perl Monks concerning the following question:
You want to debug the perl modules running inside your app because it seems to behave differently (and incorrectly) to on the "outside", so you pass -d as an argument to perl_parse.
When I try that I get the perl debugger intro text printing out, but the code never actually stops and I never get a debugger prompt. I tried locally and with the RemotePort option to connect via tcp with the same result - debugger welcome text every time, but it never stops to listen.
Any ideas?
Update: Dear future me: the solution was as simple as adding a perl_run(). It's not strictly required normally since I run code via call_perl() etc. but since the perl debugger is simple code in perl5db.pl that gets executed at require time, it was never actually getting executed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: The perl debugger and an embedded interpreter (Mac Cocoa)
by Anonymous Monk on Jun 06, 2012 at 11:50 UTC | |
by aufflick (Deacon) on Jun 07, 2012 at 03:07 UTC | |
by Anonymous Monk on Jun 07, 2012 at 03:15 UTC | |
|
Re: The perl debugger and an embedded interpreter
by xiaoyafeng (Deacon) on Jun 06, 2012 at 15:42 UTC | |
by aufflick (Deacon) on Jun 07, 2012 at 04:34 UTC | |
by aufflick (Deacon) on Jun 07, 2012 at 03:02 UTC |