I’m having a problem using Komodo IDE to debug some PERL scripts which run as CGI in apache. According to the komodo docs, a debug window should open, when I start the script. This doesn’t happen. Even when I run the script from command line with perl -d, there’s nothing happening in komodo. I’ve checked the listening port with netstat and confirmed that komodo is actually listening on port 9000.
As per the documentation, I’ve added the listening port 9000 to the apache configuration with the PERLDB_OPTS directive, and added the -d flag to the shebang of the script.
Here are some screenshots of my settings and also the error log:
I’ve also tried to enable debugger logging, but there is no log file being created in the given path.
I’ve also watched network traffic on port 9000. Here’s a screenshot of what I see:
Right - that makes sense - as the special perl5db.pl module (included in both the perl standard library and Komodo) is used to launch the debugger - so Komodo’s perl5db module must be found before the perl standard library one in order to debug with Komodo.