Just a little while ago, I was asked to look into problems Komodo was having with remote mod_perl debugging. I followed the documentation and, indeed, I couldn't get it to work right away. So, after a bit of fiddling around,...
Just a little while ago, I was asked to look into problems Komodo was having with
remote mod_perl debugging. I followed the documentation and, indeed, I couldn't
get it to work right away.
So, after a bit of fiddling around, here is what I've
come up with. It works, and it's even simpler than what's in the documentation.
First, you'll need a little symlink (or copy) of perl5db.pl
$> cd [komodo]/lib/support/dbgp/perllib
$> mkdir Apache
$> cd Apache
$> ln -s ../perl5db.pl .
That's needed bacause later, we'll be using a module that needs Apache/perl5db.pl to exist.
Then, you need to install Apache::DB
$> cpan Apache::DB
Finally, you just need to add a small snippet to your httpd.conf
<Perl>
use lib qw([komodo]/lib/support/dbgp/perllib);
$ENV{PERLDB_OPTS} = 'RemotePort=localhost:32861 LogFile=stderr";
use Apache::DB ();
Apache::DB->init;
</Perl>
<Location />
PerlFixupHandler Apache::DB
</Location>
That's it! You only need to start your webserver in single-server mode and hit a page
* [komodo] == Base installation of your version of Komodo