Did you install xDebug and configure it for your PHP version? I’m write a simple tutorial how to do that in Debian Linux but configuring xDebug same everywhere: in Mac, Linux and Windows.
Shortly what you must do:
For me it’s just a zend_extension = "xdebug.so" (I use XAMPP)
@defman, that is only necessary for remote debugging, or in your case, compiled your own xdebug. I would like to get @tmw100 back to the default config where it should work, then we can muck around with workarounds.
For supported versions of PHP, Komodo has the xdebug bits stored in KOMODO_DIR\libs\support\php\debugging. That path varies slightly between OSs but you get the idea.
Komodo will detect your PHP version that is on your system PATH then create a PHP.ini file that it will store in your Komodo profile. Here’s mine on Windows:"%LOCALAPPDATA%\ActiveState\KomodoIDE\8.5\php\5.5.1\php.ini". It has the Komodo debugging config lines pre-pended to the file.
Any way, long story short. You should be able to simply point Komodo at your PHP interpreter and it will do the rest. So try the most basic setup first then we can move forward if that doesn’t work.
It’s necessary if MAMP or XAMPP automatically configure mysql and mysqli for using (in most cases it’s true). And when you try to configure Komodo’s php.ini - you can get some problems with paths to mysql.sock or something like it.
That’s out of scope here @Defman . If you need a custom php.ini file then sure, make one. But we’re just trying to figure out why @tmw100’s PHP isn’t working.
What is the “original default”? I did not modify the php.ini that came from the download from MAMP.
How and where does one point Komodo to the PHP Interpreter? Actually, I know where that config is done; but the question is what file/location is the dialog box looking for on Mac OS?
(see attached screenshot)
Remove path from “Directory containing php.ini” and Komodo will start use default php.ini in folder KOMODO_LIB_SUPPORT_FOLDER/php/debugging/<major interpreter version> based on selected interpreter, e.g. for php 5.5.18 Komodo will start use KOMODO_LIB_SUPPORT_FOLDER/php/debugging/5.5/xdebug.so xDebug version.
[Or you can follow the train, CJ my instructions how to install xDebug and configure it][1]
Or try to insert in bottom/top of your MAMP php.ini this line:
Making progress and much closer. The error message has gone away in the config screen. Debug is silently not doing anything. I’m thinking xdebug needs to be installed… Not sure where that goes - yet. Or, where to get the correct version
Remote PHP debugging encompasses all types of PHP debugging not initiated from within Komodo, including debugging PHP scripts running under a local web server.
I’m attempting to debug code written for Drupal… In the past, I’ve always initiated debug from the browser window by appending the following
/?XDEBUG_SESSION_START=1
Now the question is where and how to configure for remote… the documentation for configuring for Mac OS is not very clear, at best, and I believe inaccurate. (see attached screen shot )
Finally got it working. The most relevant pieces to the puzzle are:
I’m debugging remotely. Remotely means more then just debugging from a server that is physically remote.
The documentation for setting up debugging isn’t the easiest thing to follow. WHERE the xdebug.so file is kept does not make much difference, as along as it is pointed to correctly in the php.ini file. The php.ini file must be the same one being loaded by the web server that is rendering the content that is being debugged.
I’ve attached screen shots of the relevant section of that ini file, and a screenshot of the Komodo configuration file