Skip to content

Instantly share code, notes, and snippets.

@efinal
Last active August 29, 2015 14:03
Show Gist options
  • Save efinal/66800214112f9e035538 to your computer and use it in GitHub Desktop.
Save efinal/66800214112f9e035538 to your computer and use it in GitHub Desktop.
How to remote debug phpunit tests with phpstorm 8 EAP
I'm developing php laravel application with an ubuntu vm hosted on a windows system. codes are shared through share folder between vm and host. the mounting place is /mnt/hgfs/server_php.
here are the steps I figured out which can enable you debug phpunit tests remotely with remote php interpreter inside phpstorm 8 EAP
first, please ensure you are installing phpunit in server through composer:
add "phpunit/phpunit": "4.0.0", in your composer.json and run composer update
1) download phpstorm 8 EAP: http://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program
2) configure deployment option:
![001](https://cloud.githubusercontent.com/assets/1874983/3561987/873aa0f0-09db-11e4-92a6-ab83315a2a01.jpg)
!002.jpg!
3) configure php->servers
!003.jpg!
validate it
!004.jpg!
4) config php->debug
!005.jpg!
5) config php->phpunit->local
!006.jpg!
add a remote interpreter
!008.jpg!
!007.jpg!
6) create a configuration
!009.jpg!
now you can add a breakpoint and just start listen and debug!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment