views:

11

answers:

1

I need to disable some code when run under the debugger.

So, I just imagine that doing:

{$IFNDEF DEBUG} 
  ...
{$ENDIF}

However, the code inside the ifndef is executed in the debugger, makin it crash.

I have lazarus 0.9.29 & FPC 2.4.0