Skip to content
Advertisement

PHpUnit with xdebug Breaks at BaseTestRunner instead of the actual test

I have setup Xdebug remote debugging with the following configuration:

I placed a breakpoint in my phpunit test:

JavaScript

Then I set the Xdebug to listen for the xdebug. ON the remote server (vagrant VM) I run the following commands:

JavaScript

But my VSCode (ufing vscodium fork) breaks upon vendor/phpunit/phpunit/src/Runner/BaseTestRunner.php Instead of the actual unit test due to refrlection as seen in the xdebug log:

JavaScript

So how I can make the xgebug the my test function signature?

Advertisement

Answer

I was having the same problem. Check on your lower left, on “Breakpoints” section of the debug sidebar, if “Everything” is ticked. Untick it.

Look on the following screenshot for how to uncheck it: enter image description here

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement