break on variable change

Questions and answers regarding the use of eclipse environment as seen in Servoy Developer

break on variable change

Postby fredc » Thu Jun 16, 2011 5:34 pm

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)?
fredc
 
Posts: 14
Joined: Wed Jun 15, 2011 8:40 pm

Re: break on variable change

Postby Joas » Tue Jun 21, 2011 2:35 pm

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 about that.
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: break on variable change

Postby jcompagner » Mon Jun 27, 2011 12:16 pm

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.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Eclipse Environment

Who is online

Users browsing this forum: No registered users and 3 guests

cron