Strange problem with xDebug on IntelliJ IDEA 12 and Mac Mountain Lion

Hey,

First of all let me welcome you. I'm new to the forums.

I'm using Mac osx Mountain Lion, and MAMP Pro.

MAMP Pro is using PHP 5.4.10. I have the following lines in by php.ini regarding Xdebug, and phpinfo() shows, that xdebug is enabled.

[xdebug]
zend_extension="/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
xdebug.default_enable=1
xdebug.coverage_enable=1
xdebug.profiler_enable = 0
xdebug.profiler_output_dir = "/tmp"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_log=/tmp/xdebug.log

Recently I've tried to install PEAR and phpunit and phpcs ( CodeSniffer ) for IntelliJ. But this somehow introduced an issue in debugging.

Now image that I'm starting my computer. Running IDEA and MAMP and enable listening to xdebug incoming connections. From my terminal I'm running phpcs, and IDEA catches this connection to debug phpcs, which is strange.

I stop the debug process.

I put breakpoint in the code and open my page defined as local.myapp.com. IDEA correctly catches the breakpoint and I can debug the app. I stop the debug process and refresh the page.

Now everything is freezed. The page does not load, debugger in IDEA says that I'm disconnected. Nothing really happens.

As soon as I disable listening to php debg connections everything is fine. The page works as expected.

To be able to debug again I need to restart my computer.

Then I can do debug one time and the situation repeats itself.

If you need anything from me please let me know.

I don't know what may be necessary for you to help me, but your help would be grately appreciated.

Jakub

1 comment

Actually I can attach a screenshot.

I've run debug web application, it started correctly. Then when it enters the break point it hangs. And attached is the screeshot.

Breakpoint icon looks like it has been hit, but there are no buttons to navigate.



Attachment(s):
Screen Shot 2013-06-20 at 2.34.10 PM.png
0

Please sign in to leave a comment.