Fork me on GitHub

Conditional Xdebug breakpoints in phpStorm

How many times did you modify that big loop of yours just to make phpStorm enter a debugging session in the right place at the right time?

Well, that times are over now, thanks to phpStorm and its conditional breakpoints! Why didn’t I know that fancy functionality exists? I feel really pity for myself.

Just add a breakpoint, right click on it and add your condition. And yes, those are pure PHP conditions, go bananas!

Creating a conditional breakpoint

Run your code and let the magic happen.

Written on July 6, 2018