xdebug does not stop on breakpoint in tester (PHPStorm)

miloshavlicek
Member | 5
+
0
-

Hi,
can anyone help me how to debug tests that I run via tester?

Steps to reproduce:

  • Start the script “vendor/bin/tester tests”
  • with these env variables: XDEBUG_CONFIG=remote_enable=1 remote_host=localhost remote_port=9000 idekey=PHPSTORM remote_autostart=1
  • Set breakpoint in any test
  • Start debugging > program does not stop on breakpoint

If I set a breakpoint to vendor/bin/tester than it stops, however, I am not able to continue to my scripts.

Last edited by miloshavlicek (2020-04-27 13:06)

David Matějka
Moderator | 6445
+
+3
-

Hi, i don't recommend (although it may be possible with some effort) debugging tests this way.
Since you can run individual .phpt test files, it is much better to run & debug just a single test file.