phpStorm + PHPUnit + xDebug - how do I debug my test cases?

Hi,

I set up xDebug 2.1.4 and am able to debug web pages from the browsers.

I also have PHPUnit set up and can run tests from within PHPUnit.

Now, how do I set up phpStorm to be able to debug my test cases? Currently, it doesn't stop on the breakpoints.

Thank you,
Andrew

0
3 comments

Hi,

Exactly the same as you run them -- just click on "Debug" button and not "Run" (I assume you are referring to "PHPUnit" run configuration type).

If, for whatever reason, it does not work, then I recommend creating very simple PHP script and try debugging it first (PHP Script run configuration type). When it will be solved, then try debugging PHPUnit again.

0

What do you mean? Can you talk in terms of what button/menu item I should press etc please?

0

Oh, I got it :) Thanks!

0

Please sign in to leave a comment.