using PhpStorm for debugging on Mac?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
pglatz's picture

Anybody using PhpStorm for debugging? http://www.jetbrains.com/phpstorm/

It's a pretty good IDE, and I find it superior to Eclipse. But I haven't used it for a few months, and just upgraded from version 2 to 3. I'm using it on mac Lion with Firefox 8 and MAMP Pro. I just can't get it to recognize breakpoints now.

If anyone is using it (version 2 or 3) for debugging, please let me know, maybe I can learn something form your configuration.

thanks!

Comments

I am using phpstorm for a

Helrunar's picture

I am using phpstorm for a while and using it also to debug in combination with xdebug. See screenshot for my settings in phpstorm

http://imageshack.us/photo/my-images/24/auswahl003q.png

First i set my breakpoint and start listend to PHP Debug Connections

http://imageshack.us/photo/my-images/192/auswahl004.png

In Firefox i am using easy Xdebug https://addons.mozilla.org/en-US/firefox/addon/easy-xdebug/ which i start by click on the icon an then i will open the site i want to debug

http://imageshack.us/photo/my-images/231/auswahl005.png/

Now my debugger will start working

http://imageshack.us/photo/my-images/829/auswahl006.png

I am using Ubuntu, but it should also work with your mac ;-)

Hi Helrunar- Thanks for the

pglatz's picture

Hi Helrunar-

Thanks for the information. Most all of my settings are the same as yours, with the exception of the xdebug idekey.

I'm using the new version 3 of phpstorm, but I don't think this part of it has changed. I installed the easy Xdebug extension as you suggested. When I opened the options, I saw the idekey (xdebug-netbeans) was different than the one I'm using. I tried changing it, but the OK button had no effect. All I can do is cancel, and nothing is saved.

I next tried to change the idekey setting that's showing up in phpinfo. I can edit the php.ini file that's being used, but this only changes the master value. The local value is set to pglatz (my user name), but I don't see the xdebug idekey setting in my local environment, .htaccess, or other config files.

I went into my run/debug config on phpstorm and set the ide key there to netbeans-xdebug, so it now matches the one in easy Xdebug. I'm hoping this override the local setting shown in phpinfo.

I clicked the "listen to php debug connections" button on phpstorm, and opened my page. Nothing.

So I clicked the debug button in phpstorm, and see the message "waiting for incoming connection with ide key 'netbeans-xdebug'", refreshed the borwser, still noting.

I see I have a cookie named XDEBUG_SESSION set to netbeans-xdebug.

As I recall, when I last used this successfully, more than a few months ago, I didn't need to use anything like easy Xdebug, and was able to set it up as php web application.

Does easy Xdebug do what those bookmarklets from phpstorm do? http://blog.jetbrains.com/webide/2011/03/configure-php-debugging-in-phps...

thanks so much for your help, Phil

I have no ide key set in my

Helrunar's picture

I have no ide key set in my configuration

http://img843.imageshack.us/img843/6539/auswahl035c.png

and made my setting here

http://img685.imageshack.us/img685/2927/auswahl036.png

here are my setting for xdebug

zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

I am using this settings in both, in phpstorm 2.15 and in 3, and in both it will work for me

naimlatifi's picture

Hi everyone,

Can you please help me to configure zero debugging with xdebug to work in my phpStorm. I followed your guide but still some problems. I can explain for everything what I did if needed.

Thanks a lot for your help !

All the best,
Naim

Sacramento Area

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week