Debug remote console PHP (via SSH)?
Is it possible to debug remote CLI php execution with PhpStorm? With that I mean, run a script I've in my project on a remote server with full setting breakpoints and such?
I've debugging over HTTP(s) working with no problem, but I can't figure if/how it's possible with CLI on a remote server (using vagrant in my case).
xdebug is enabled on the remote server for both apache2 (where it's working) and CLI:
vagrant@dev:~$ php -i|grep 'xdebug.*enabled'
xdebug support => enabled
I was looking at http://www.jetbrains.com/phpstorm/webhelp/run-debug-configuration-php-remote-debug.html but couldn't get anything working and was/still am quite confused about the wordings.
Using PhpStorm 7.1.3
Build #PS-133.982, built on February 25, 2014
JRE : 1.6.0_65-b14-462-11M4609 x86_64
VM: Java HotSpot(TM) 64-Bit Server VM by Apple Inc.
thanks
Please sign in to leave a comment.
Hi there,
You can try PhpStorm v8 EAP build -- it now supports remote interpreters .. so debugging should be pretty straightforward.
http://blog.jetbrains.com/phpstorm/2014/04/php-remote-interpreters-support-in-phpstorm-8-eap/
For v7.x -- it's more complicated to do -- check this ticket and comments for details -- http://youtrack.jetbrains.com/issue/WI-7906
Related:
I switched to EAP and it was easy as pie, thank you very much; *fantastic* feature!