[Gambas-user] Gambas3 Debugger: Data Breakpoint

John Anderson johna at starflightinc.com
Tue May 25 17:23:59 CEST 2021



On 5/24/2021 6:41 AM, Benoît Minisini wrote:
> 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
>>
>
> Hi,
>
> Stopping the debugger when an expression changes has been implemented 
> in the last commit.
>
> It's not so slow as soon as your expression does not reference a local 
> symbol (i.e. a local or a class variable), because searching the value 
> of a local symbol is not optimized in the debugger (it has to compare 
> the symbol name with all possible symbol registered in the debugging 
> information, there is no symbol table for that).
>
> Regards,
>
Thanks Benoît - This is a big step forward for being able to debug 
problems on a large codebase!!  No matter how hard we try to anticipate 
what could possibly go wrong in the field, reality always finds a way...




More information about the User mailing list