[Gambas-user] Gambas3 Debugger: Data Breakpoint

Benoît Minisini g4mba5 at gmail.com
Sat May 22 21:36:25 CEST 2021


Le 22/05/2021 à 21:10, John Anderson a écrit :
> Forgive me if this already exists in Gambas, but On Gambas3.16, while 
> debugging is there a way to:
> 
> Setup a Breakpoint to halt execution when <Expression> changes?
> 
> I know we can setup a Watch Expression to see what a variable / object 
> value is while paused at a breakpoint,  but is there a way to setup a 
> "Data Breakpoint" that can halt when an expression changes value.
> 
> For instance in Gambas IDE: Setup a watch on public variable Xval , and 
> then tell the system we want to halt whenever Xval changes.
> 
> I can't seem to find this in the docs if it exists.
> 
> -John
> 

This is not possible.

It could be implemented, but then it will require to evaluate 
<Expression> each time a line of code is executed, so it would slow down 
the program a lot.

I will think about that, I'm just afraid that it would be slow, and that 
evaluating an expression may have side-effect - for example if you call 
a program function in your <Expression>, or a native routine like Temp$()...

-- 
Benoît Minisini


More information about the User mailing list