I am trying to debug using Komodo. I can not get it to work 100%. First I hit "Step In/go" and get the Debugging Options. When I choose the working directory of my PHP script in "Interpreter Arguements," the script runs but in the debugger window get:
Call to undefined function: mysql_connect(). Please install the MySQL Connector for PHP
But I have done this. I have also tried using the wizard in Edit >> Preferences >> Languages >> PHP. I can configure and simulate the CGI environment but cannot debug the code. After completing the wizard and trying to debug a php page in the active project I get:
Status: 404 Not Found X-Powered-By: PHP/5.2.6 Content-type: text/html No input file specified.
Not exactly clear on what these 4 values do upon "step in" when debugging, specifically interpreter arguments and script arguments. I've used a range of values in interpreter arguments (-c) trying to get it to work and the working directory of the script seems to work best, even without a php.ini file in it.
Script arguments I thought were to pass to the page being debugged as it could use some URL paramaters? but that was wrong. Debugging on my machine is done at http://mysite1.local/ and the only args I can pass using this dialog box are of "C:\Program Files" type (ie. none), not "http://mysite1.local/?some=arg".
I have Vista SP1, Apache 2.2.9, MySQL 5.0.51a and PHP 5.2.6 (manual) installed and browsing the database enabled websites works fine. Can you offer any suggestions or should I just post a config file? Thanks
edit: I guess I could mention 'preview' works fine within komodo, in a seperate tab.
In continuing my efforts to get some debugging working, I began configuring remote debugging for use on the local machine. After going to Edit >> Prefs >> Debugging >> Connection and entering in 127.0.0.1:9000 to use as the proxy and my idekey, (also found in my php.ini), the program will not open. Maybe it didn't like what I entered but I was following this page:
http://docs.activestate.com/komodo/4.4/debugphp.html#debugphp_top
Since entering those values I am unable to use Komodo. It crashes on open.
The program komodo.exe version 4.4.1.0 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Problem Reports and Solutions control panel. Process ID: 754 Start Time: 01c929aa547654b0 Termination Time: 4
Did I miss something on the system requirements here? Why didn't komodo use all my working settings from before it was installed? I get PHP 404's on any page I try to debug. Mapped URI's don't seem to work within Komodo. I can't even open Komodo! I have to un/re-install! This was supposed to make my life easier! eek!
I've uninstalled and reinstalled. Komodo doesn't open. I need to know how to reset any leftover Komodo settings back to nothing so that if/when I reinstall it again - it will work.
I also found a useful page for debugging with Windows:
http://community.activestate.com/faq/how-do-i-get-php-debuggin
I would suggest making that page into a help page. I'd like to try again but can't open Komodo anymore. Any suggestions would be appreciated.
I've been meaning to write an FAQ about this for a while. Here it is:
http://community.activestate.com/node/2873
As for the PHP debugging FAQ, that information is already in the User Guide:
http://docs.activestate.com/komodo/4.4/debugphp.html#config_remote_PHP
It's slightly more long-winded than the FAQ, but it should contain all the same information. Let me know if you find anything in either source confusing (or just plain wrong).
I had found the "installation profile" type folder full of all the settings in C:\Users\MyProfile\AppData\Roaming\ActiveState\KomodoIDE. Deleted the Activestate folder prior to re-installation and it was working again. Now, maybe this is what my problem was, When I step-in using the debugger I can step through every step fine. But "Go" causes a windows error saying: CGI / FastCGI has stopped working.
Faulting application php-cgi.exe, version 5.2.6.6, time stamp 0x481b8f5f, faulting module ntdll.dll, version 6.0.6001.18000, time stamp 0x4791a7a6, exception code 0xc0000005, fault offset 0x0006814c, process id 0x10b4, application start time 0x01c92a3ee75401b6.
I dont have time now to check but I hope the Go button will work.
I can step in. Whenever I "go" or "step out" the script runs to completion and the CGI crash error comes up. It does render all the HTML correctly in the HTML tab and Output tab of the Debug Output. If I set a breakpoint it runs and stops accordingly but always get a CGI crash error at the end.
Nothing is available in the "Watch tab" of debugging upon completion of the script and subsequent crash of CGI. Stepping through I can view variables in the Watch tab but not when the script completes, they are no longer available.
I am using the 4.4.1 trial. One other question, is the Re-check config button under Preferences >> Languages >> PHP non-functional in the trial? Or other debugging functionality?
And is there much of a difference in configuration between the trial and licensed version? I don't want to reconfigure anything again, more like have the installation take care of it for me. I need a more powerful IDE and I can't waste more time configuring.