Re: help with Apache::DB
Perrin Harkins wrote: On Tue, 2003-02-18 at 08:07, giorgos zervas wrote: i am using Apache::DB to debug my mod_perl handlers and altough the debugger seems to be working fine it won't display the source code next to the current line being debugged. That's because you are compiling that code before you activate the debugger, so it doesn't get to put in the debugging symbols. Look at the "init" method in the Apache::DB documentation. Thanks Perrin, now I recall that ;) and it's even documented: http://perl.apache.org/docs/1.0/guide/debug.html#Interactive_mod_perl_Debugging __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: help with Apache::DB
On Tue, 2003-02-18 at 08:07, giorgos zervas wrote: > i am using Apache::DB to debug my mod_perl handlers and altough the > debugger seems to be working fine it won't display the source code next > to the current line being debugged. That's because you are compiling that code before you activate the debugger, so it doesn't get to put in the debugging symbols. Look at the "init" method in the Apache::DB documentation. - Perrin
Re: help with Apache::DB
hi stas, thanks for you help. i tried debugging one my non modperl scripts from the command line and it seems to be working as expected. the debugger commands 'w' and 'l' display the source code as expected and i also always see the current line being executed by the debugger. so the problem must be Apache::DB specific. still i am clueless as to what it could be... regards, giorgos On Tue, 2003-02-18 at 23:14, Stas Bekman wrote: > giorgos zervas wrote: > > hi all, > > > > i am using Apache::DB to debug my mod_perl handlers and altough the > > debugger seems to be working fine it won't display the source code next > > to the current line being debugged. for example: > > > > DB<10> r > > scalar context return from CODE(0x8d7101c): -> undef > > Apache::DB::CODE(0x8d7101c)(/usr/local/lib/perl/5.6.1/Apache/DB.pm:35): > > 35: > > > > next to the line starting with "35:" the 35th line of source code should > > be displayed. however this doesn't happen either with my modules or the > > ones from CPAN. > > > > i even thought it might me a font problem and tried to use different > > terminals and font combinations but none of them worked for me. > > > > has anyone else encountered a similar problem? > > I haven't seen such a thing, but do you see a similar problem if you debug > from the command line (certainly something similar but that doesn't require > mod_perl). > http://perl.apache.org/docs/1.0/guide/debug.html#Introduction_to_the_Perl_Debugger > > __ > Stas BekmanJAm_pH --> Just Another mod_perl Hacker > http://stason.org/ mod_perl Guide ---> http://perl.apache.org > mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com > http://modperlbook.org http://apache.org http://ticketmaster.com -- giorgos <[EMAIL PROTECTED]>
Re: help with Apache::DB
giorgos zervas wrote: hi all, i am using Apache::DB to debug my mod_perl handlers and altough the debugger seems to be working fine it won't display the source code next to the current line being debugged. for example: DB<10> r scalar context return from CODE(0x8d7101c): -> undef Apache::DB::CODE(0x8d7101c)(/usr/local/lib/perl/5.6.1/Apache/DB.pm:35): 35: next to the line starting with "35:" the 35th line of source code should be displayed. however this doesn't happen either with my modules or the ones from CPAN. i even thought it might me a font problem and tried to use different terminals and font combinations but none of them worked for me. has anyone else encountered a similar problem? I haven't seen such a thing, but do you see a similar problem if you debug from the command line (certainly something similar but that doesn't require mod_perl). http://perl.apache.org/docs/1.0/guide/debug.html#Introduction_to_the_Perl_Debugger __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com