The compiler directives you mention are actually these: compiler directives, not debug directives.
They relate to the compilation process, because it is completely separate from the debugging system.
What you need to do:
- If you want to debug a program, define the DEBUG symbol. This will NOT compile blocks that exist inside the tests, and will not run in a debugging session.
- , DEBUG, .
.
.
, GUI, , , , .
, .
. {$ DEFINE DEBUG} - / Lazarus, .
.