[Lazarus] Conditional Breakpoints - are they supported yet?

Martin Frb lazarus at mfriebe.de
Fri Mar 6 12:58:04 CET 2015


On 06/03/2015 11:52, Graeme Geldenhuys wrote:
> On 2015-03-06 00:37, Martin Frb wrote:
>> Fixed (I hope). You can now compare chars in the condition (chars, not
>> strings)
> Hi Martin, thanks for trying, but it still doesn't work. Just got the
> latest Lazarus from trunk a few minutes ago. See attached screenshot.
> Compare the breakpoint condition (comparing chars only) to the local
> variable value. The breakpoint always breaks no matter the condition.
>

You need single quotes as in my example. Double quotes make it a string 
to gdb, and gdb does not compare string to char.

Also I have not tested if it works with spaces, I tested only with no 
spaces at all

If the problem persists:
- See if the condition works if entered as a watch.
- Copy and pashe from the "debug output" window

I did test using dwarf2 (withSets). No idea about stabs.

I might do more complete tests at some point...




More information about the Lazarus mailing list