Last active
August 29, 2015 14:03
-
-
Save efinal/66800214112f9e035538 to your computer and use it in GitHub Desktop.
How to remote debug phpunit tests with phpstorm 8 EAP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
 | |
!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