You would need to use:
#if !DEBUG
// Your code here
#endif
Or, if your symbol is actually Debug
#if !Debug
// Your code here
#endif
From the documentation, you can effectively treat DEBUG as a boolean. So you can do complex tests like:
#if !DEBUG || (DEBUG && SOMETHING)