[Lazarus] BreakIf

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sun Mar 29 23:39:58 CEST 2015


On 2015-03-27 12:45, JuuS wrote:
> Would be nice to have it in my current environment too...if
> possible.


There is a simple solution indeed. The following works on all platforms
and will give the same result as your BreakIf() did.

"
var
 testvar: integer;
[...]
if b then
 testvar:= 0; //<<<--- set a breakpoint here
"
In order to remove the test statements use "testvar" in 'Search'-'Find
in Files'-'Text to find'.


I use this work-around because Condition Breakpoints still ain't fully
implemented in Lazarus IDE or MSEide.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/




More information about the Lazarus mailing list