Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I set a breakpoint on a changing value?

I want to pause execution only when the value in a variable changes to a specific value. I am using PHPStorm and Xdebug. Can anyone tell me how to do this?

like image 217
Ed McLaughlin Avatar asked Feb 25 '13 16:02

Ed McLaughlin


2 Answers

Put a breakpoint and then right click on it (on the red bullet). Select edit and you can enter a condition.

like image 174
linepogl Avatar answered Sep 30 '22 04:09

linepogl


Install breakpoints after press it right. In the window that appears, enter the condition for which you want to stop the debugger. With zend debugger it's work.

like image 34
gregman Avatar answered Sep 30 '22 03:09

gregman