View Single Post
 
Old 09-25-2018, 12:40 PM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,305
Default

I would've assumed that OutputDebugString already had this validation, but you could also do:
Code:
{$IFDEF DEBUG}OutputDebugString('asdfas');{$ENDIF}
Now if you compile in release you shouldn't see the message
Reply With Quote