![]() The only thing I need to do in the terminal, while using VS code debugger (with WSL), is execute this command: export XDEBUG_CONFIG="idekey=VSCODE"Īfter that I simply run my phpunit command as usual. Or you can create a file called phpunit-debug (to store the XDEBUG_CONFIG environment variable) as outlined here: phpunit xdebug ![]() Then running this at the command line (here I am using a download of phpunit instead of the one linked to in /usr/local/bin (which doesn't seem to work)) XDEBUG_CONFIG="idekey=PHPSTORM" bin/phpunit -c app Xdebug.idekey = "PHPSTORM" #seems to work without this too Zend_extension="/usr/local/Cellar/php55-xdebug/2.2.6/xdebug.so" #this will be different on your machine and will probably already be set These settings worked for me (running site from a vagrant box, but phpunit outside vagrant box): #xdebug.ini (parent machine, not inside vagrant box). I was trying to follow this: phpunit vagrant xdebug to get it working from inside a vagrant box (almost got there but with some issues). run phpunit) inside a vagrant box but realised it was easier (and faster performance wise) running it outside the vagrant box.įirst off I used brew install php55 php55-xdebugusing homebrew on a mac (but your configuration may be different and it should still work). Xdebug.var_display_max_children => 128 => 128 Xdebug.show_exception_trace => Off => Off Xdebug.remote_log => no value => no value Xdebug.remote_host => localhost => localhost Xdebug.profiler_output_name => cachegrind.out.%t.%p => cachegrind.out.%t.%p Xdebug.profiler_output_dir => c:/wamp/tmp => c:/wamp/tmp Xdebug.profiler_enable_trigger => Off => Off Xdebug.file_link_format => no value => no value Can anyone point me in the right direction? Thx!ĭBGp - Common DeBuGger Protocol => $Revision: 1.145 $ I've tried running the following CLI command: phpunit -d xdebug.profiler_enable=on XYZTestCase.phpīut it just runs as normal.
0 Comments
Leave a Reply. |