In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Debugger ... way to WATCH a variable

Xailer professional forum in English
Responder
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

Debugger ... way to WATCH a variable

Mensaje 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
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Debugger ... way to WATCH a variable

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

Debugger ... way to WATCH a variable

Mensaje 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
Responder