I tried something different. For my debugger routines I placed a conditional compiler directive that left the procedure empty, expecting Delphi to remove the calls, so I won't have to add conditional directives to remove each call of the procedure... but doesn't work, Delphi doesn't remove calls to empty procedures.