Thanks Monk. Breakpoints work already. Is the number of line that is not agreed between what mod_perl writes down (fixed #1) and what the Apache::DB tries to understand. The following 4 lines snippet makes it clear:
1 #!/usr/bin/perl
2 my $a=2;
3 print "Content-type: text/plain\n\n";
4 print "$a\n";
$my eval is 'evaluated' by mod_perl as:
package ModPerl::ROOT::ModPerl::PerlRun::home_jjmoka_TEST_code_test
+2_2epl;sub handler {local $0 = '/home/jjmoka/TEST/code/test2.pl';
#line 1 /home/jjmoka/TEST/code/test2.pl
#!/usr/bin/perl
my $a=2;
print "Content-type: text/plain\n\n";
print "$a\n";
And that doesn't work. In that case I must fix
"#line 1" to
"#line 3", and the debugger is able to step each line normally. With any other value X different from 3
"#line X" I see only blank lines on each step. Anyhow 3 is not the solution for every snippet I decide to submit.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.