I have a little problem with the Perl debugger. When I eval some code
and then execute it, the debugger tell me:
main::foo((eval 1):2): DB<1>
So it knows that it's in line 2 of the first eval'ed thing but it does
not show me the contents of the line. Similarly, the 'l' command does
not show anything.
Would it be possible to enhance the debugger so that it keeps in
memory the things that it evals in order to show the lines?
Lionel Cons
+------- CERN - European Laboratory for Particle Physics ------+
| E-mail: Lionel.Cons@cern.ch PGP key ID: D3CFFDA5 |
| Earth-mail: CN/DCI/UWS, CERN, CH-1211 GENEVE 23, Switzerland |
| Phone: + (41 22) 767 49 13 Fax: + (41 22) 767 71 55 |
+--------------------------------------------------------------+
#!/usr/local/bin/perl5
@x=('no bawujts','mx ypihtre','ercqkg lah');
@y=(793633,793634,793633);
$x=join('',grep(eval("\$_*=97,tr/0-9/$x[$x++]/"),@y));
print "\u$x!\n";
and then execute it, the debugger tell me:
main::foo((eval 1):2): DB<1>
So it knows that it's in line 2 of the first eval'ed thing but it does
not show me the contents of the line. Similarly, the 'l' command does
not show anything.
Would it be possible to enhance the debugger so that it keeps in
memory the things that it evals in order to show the lines?
Lionel Cons
+------- CERN - European Laboratory for Particle Physics ------+
| E-mail: Lionel.Cons@cern.ch PGP key ID: D3CFFDA5 |
| Earth-mail: CN/DCI/UWS, CERN, CH-1211 GENEVE 23, Switzerland |
| Phone: + (41 22) 767 49 13 Fax: + (41 22) 767 71 55 |
+--------------------------------------------------------------+
#!/usr/local/bin/perl5
@x=('no bawujts','mx ypihtre','ercqkg lah');
@y=(793633,793634,793633);
$x=join('',grep(eval("\$_*=97,tr/0-9/$x[$x++]/"),@y));
print "\u$x!\n";