ID:2349382
 
Resolved
Libraries compiled in debug mode are no longer able to force the main project to also use debug mode. In brief, #define DEBUG is internally wrapped in an #ifdef __MAIN__ ... #endif construct.
Applies to:Dream Maker
BYOND Version:511
Operating System:Windows 10 Home 64-bit
Web Browser:Chrome 64.0.3282.186
Status: Resolved (512.1413)

This issue has been resolved.
.
#ifdef __MAIN__
#define DEBUG
#endif
You make a good point. I'm going to move this to feature requests however, since I think that's a better fit for it.

I'll look into what it will take to detect this and avoid turning on DEBUG in a library. It might well be something as simple as not allowing DEBUG to be defined when __MAIN__ is not true, enforcing Super Saiyan X's code.
I have a preliminary implementation in place and just need to test it.
Lummox JR resolved issue with message:
Libraries compiled in debug mode are no longer able to force the main project to also use debug mode. In brief, #define DEBUG is internally wrapped in an #ifdef __MAIN__ ... #endif construct.
I'm curious what happens to libraries that already used the __MAIN__ macro method? Will it end up double-wrapped?