Hello,
I've a compiler and debugger problem. I switch a personnal compilation directive...:
{$If defined(DebugOnlyCompTLAZAUTOUPDATE__iciSeulement)}
...\... // I want to pass here,
{$Else}
...\... // but the debugger always tracks this part of code??!
{$EndIf}
...to true in my code (through the project's options, checking it): the "live" code branch is correctly illuminated, and the dead code branch is correctly turned off (greyed - through the Lazarus'IDE colors parameters - in the screenshot). The problem is that the blue debugging dots go into the dead code branch, and that the debugger also traces at runtime the dead code branch. In short, it's dead code that's being executed??!
AMHO, this isn't normal: the runtime debugging information seems not correct, hence my question: how to explain this, i.e. how to make sure to trace the living code, to pass in the living code branch?
edit 1: I've the same problem with this statement:
{$IFDEF DebugOnlyCompTLAZAUTOUPDATE__iciSeulement}
...\... // I want to pass here,
{$ELSE}
...\... // but the debugger always tracks this part of code??!
{$ENDIF}
edit 2: I've the same problem with this statement (all uppercase):
{$IfDEF DEBUG_COMP_TLAZAUTOUPDATE_ICI_SEULEMENT}
...\... // I want to pass here,
{$ELSE}
...\... // but the debugger always tracks this part of code??!
{$ENDIF}
Regards.