You can use the DEBUG conditional compilation constant:
#if (DEBUG)
// This is only executed in Debug configuration
#endif
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
"JezB" <je***********@blueyonder.co.uk> escribió en el mensaje
news:OO**************@TK2MSFTNGP14.phx.gbl...
Any way I can programatically test whether my (c#) code is running in
Debug
or Release mode ? I want to load a smaller dataset when running in debug,
for testing purposes.