#define for code variations

I’m using Digi ESP for NET+OS Version: 1.1.1 / Build id: 02202007

I’m trying to add symbols to compiler build process to been able to include and exclude a part or parts of my code for debugging and release modes.

I’m using #ifdef #else #endif block for code variation. To make this work I need to add a DEBUG or MY_DEBUG symbol as defined to build>tools setting>symbols section (usinf project properties). Everything looks fine until the device gets boot up with the message “Error starting TCP/IP stack. The stack doesn’t come up (try: nn).”. No matter what kind of symbol I choose I’m always getting this error.

I wonder if anyone try to use a system wide #define and #ifdef directives?

cheers.

Message was edited by: arabed