Mar 4, 2004 #1 Y Yaron Member Joined Dec 8, 2003 Messages 6 Hi I am looking for a way to determine at run time if the application was compiled for release or debug mode. If there something in C# similar to CVC __DEBUG__ or something similar, so I can: #ifdef __DEBUG__ DoSomething(); #endif thanks!
Hi I am looking for a way to determine at run time if the application was compiled for release or debug mode. If there something in C# similar to CVC __DEBUG__ or something similar, so I can: #ifdef __DEBUG__ DoSomething(); #endif thanks!
Mar 4, 2004 #2 H Hamburger1984 Well-known member Joined Jun 12, 2003 Messages 162 Location Hamburg,Germany theres something quite similar to this... C#: #if DEBUG Console.WriteLine("Im in DEBUG modus...!"); #endif Hope this helps! Andreas
theres something quite similar to this... C#: #if DEBUG Console.WriteLine("Im in DEBUG modus...!"); #endif Hope this helps! Andreas