# break on variable change

**URL:** https://forum.servoy.com/t/break-on-variable-change/14161
**Category:** Classic Servoy
**Created:** [June 16, 2011, 3:34pm UTC](https://forum.servoy.com/t/break-on-variable-change/14161 "2011-06-16T15:34:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fredc](https://avatars.discourse-cdn.com/v4/letter/f/ad7895/32.png) [@fredc](https://forum.servoy.com/u/fredc)
#### Post date: [June 16, 2011, 3:34pm UTC](https://forum.servoy.com/t/break-on-variable-change/14161/1 "2011-06-16T15:34:27Z")

</div>

Is there a way to set a breakpoint on a variable, i.e., so the system breaks when the variable changes (regardless of the line of code)?

---

<div class="post-metadata">

### Author: ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)
#### Post date: [June 21, 2011, 12:35pm UTC](https://forum.servoy.com/t/break-on-variable-change/14161/2 "2011-06-21T12:35:21Z")

</div>

You can add a condition to a breakpoint in the breakpoint properties, but than it still only breaks on that particular line.

Unfortunately there is no such thing as a “global conditional breakpoint”, please create a feature request in the [support system](http://www.servoy.com/s) about that.

---

<div class="post-metadata">

### Author: ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)
#### Post date: [June 27, 2011, 10:16am UTC](https://forum.servoy.com/t/break-on-variable-change/14161/3 "2011-06-27T10:16:42Z")

</div>

servoy has support for this already.

If you go a place where you use or create a variable, then when you normally place a breakpoint, you can in the popup menu (where you have the option toggle breakpoint) you also have toggle watch point enabled  
This way you can toggle a watch point on that variable.

Currently in 5.2 this doesn’t work for form or global variables, i fixed that for 6.
