NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Break on change in watched item's value
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
It'd be extremely helpful if we could tell the IDE to automatically break into the debugger when the value of an item in the Watch tab changes.
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
why not?
Just add a global breakpoint and set condition.

For example if a variable $a is 'blah blah blah' and you want to see when it changes, the condition would be
$a !== 'blah blah blah'

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
That's a usable work-around for now, but it's not the same and not nearly as good. For one, it requires that I enter the value of the variable, which may not be fun - perhaps a big array or even some binary data. Also, as soon as you hit the next break, you must update the breakpoint's condition; you can't just do a quick observation of the variable and hit Run again. If you're trying, for example, to identify the particular loop iteration that's sending a variable's value into never-never-land, this would get very tedious very quickly.

However, I can see how such a flag in the Watch tab would be implemented under the hood using conditional breakpoints that are automatically set and updated... perhaps a path to quick implementation?
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
I'll think about it, thanks.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 04 Feb 2010
Posts: 1
Reply with quote
I agree. This is very important feature to add. Thanks.
View user's profileFind all posts by harrySend private message
Break on change in watched item's value
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