Página 1 de 1

Debugger ... way to WATCH a variable

Publicado: Jue Dic 13, 2012 10:40 am
por ChrisGillard
Hi,
I use the debugger usually setting breakpoints on a line of code and then stepping forward.
Is there a way of triggering the debugger when a variable changes? or even on an expression like !empty(MyVar)?
I have just thought I could use a timer event to LogDisplay() the value of my variable every 2 seconds and then see when it changes which would help.
Thanks
Chris

Debugger ... way to WATCH a variable

Publicado: Jue Dic 13, 2012 5:12 pm
por jfgimenez
Chris,
> I use the debugger usually setting breakpoints on a line of
> code and then stepping forward.
>
> Is there a way of triggering the debugger when a variable
> changes? or even on an expression like !empty(MyVar)?
>
> I have just thought I could use a timer event to
> LogDisplay() the value of my variable every 2 seconds and
> then see when it changes which would help.
I'm affraid it's not possible for now. We'll study in the near future.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

Debugger ... way to WATCH a variable

Publicado: Jue Dic 13, 2012 6:18 pm
por ChrisGillard
jose,
Thanks for the reply.
Would be a nice idea when your not doing other stuff.
My timer idea with LogDisplay( mYVar ) is showing me where one of my object vars is having its value set to "" ..... but a lot of code can happen in 1 second! ... so finding the event code responsible is not easy.
Regards
Chris