Debug Not Starting Browser Follow
I'm new to phpStorm and have looked through the forum discussion for this, but haven't been able to find the concrete answer.
I believe I have XDebug set up properly on my Mac, running MAMP. However, When debugging a PHP script, no browser opens and the debug session simply just takes place in the phpStorm IDE, either just showing the HTML code in the Debug Console, or showing stack traces.
Shouldn't phpStorm open the browser window and if so, what am I missing?
Thanks,
JB
Please sign in to leave a comment.
Hello Jurgen,
'PHP Script' run configuration is about command line debugging. Use 'Listen PHP debug connections' button or 'PHP Web Application' run configuration for debugging scripts running on server.
More details - http://blog.jetbrains.com/webide/2011/02/zero-configuration-debugging-with-xdebug-and-phpstorm-2-0/ and http://blog.jetbrains.com/webide/2011/03/configure-php-debugging-in-phpstorm-2-0/
Thank you for feedback!
Made progress. Thanks for referring to those documents.
Using the PHP Web Application, the browser now opens and I see the use of the ide key, which changes with each debug session. However, the IDE just sits there, not breaking at the break points, and states that it is waiting for a connection with the same ide key that is referenced in the browser URI.
What's still missing?
Jurgen,
Thank you for feedback!It refer to your Xdebug extension configuration. Please try to check your configuration using the following installation guide - confluence.jetbrains.net/display/WI/Xdebug+installation+guide
Looks like the XDebug IDE key for Global was missing from the php.ini file. Once that was set the debugger would properly work.
Jurgen,
Thanks for sharing!