[Lazarus] Conditional Breakpoints - again

Martin Schreiber mse00000 at gmail.com
Thu Jul 7 17:10:05 CEST 2016


On Thursday 07 July 2016 16:03:24 Martin Frb wrote:
>
> This obviously could be improved by showing the current count, and have
> a reset button. Or change the value into a count down, (but then it is
> show initial and current value, and reset to initial)

MSEide shows the breakpoint count and has an editfield 'Ignore', see 
attachment.
The program stops the first time after 'Ignore' times. Entering a value 
in 'Ignore' again skips 'Ignore' breakpoint events.

'Ignore' is especially useful if there is a crash in a function after many 
calls of the function. Set a breakpoint in code before the crash, 
set 'Ignore' to a big value so the program does not stop before the crash, 
run the program. When the crash happens check the 'Count' field, set 'Ignore' 
to 'Count'-1, run the program again, now the program stops at the breakpoint 
in the run which will crash and it is possible to check how the crash 
happens.

Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: breakpoints.png
Type: image/png
Size: 15083 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160707/5cc19798/attachment-0001.png>


More information about the Lazarus mailing list