![]() |
|
Do you know where your variables are? | |
PerlMonks |
The perl debugger and an embedded interpreterby aufflick (Deacon) |
on Jun 06, 2012 at 11:39 UTC ( #974699=perlquestion: print w/replies, xml ) | Need Help?? |
aufflick has asked for the wisdom of the Perl Monks concerning the following question:
So you have a perl interpreter embedded in your C program (actually it's a Mac Cocoa program, but that's probably not relevant). 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.
Back to
Seekers of Perl Wisdom
|
|