NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Halt debugging on variable change


Joined: 05 Aug 2013
Posts: 30
Reply with quote
I got task of refactoring some legacy project. Being new to project, I need some how to halt application execution when watched variable change it's value. Variable I'm interested is added to watch list and colored red when changed, but going with debugger line-by-line is not the option here.

Is this some how doable? Maybe with global breakpoint condition or through PHP Ed debugger API?
View user's profileFind all posts by phpstorm7Send private message
Guru master

Joined: 24 Jul 2009
Posts: 712
Reply with quote
Use an Expression true global breakpoint.

Right-click breakpoints panel
Add New
Tick Expression true global, which turns off the ability for the breakpoint to be assigned to a specific code line
Enter a PHP expression such as $myVariable == 123
Click OK and debug
View user's profileFind all posts by plugnplaySend private message
Halt debugging on variable change
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic