#if MYSYMBOL #if DEBUG System.Diagnostics.Debugger.Break(); #endif DoSomethingForMySymbol();#else #if DEBUG System.Diagnostics.Debugger.Break(); #endif DoSomethingForEverythingElse();#endif
System.Diagnostics.Debugger.Break() can only be called in Debug mode, so make sure you wrap it in a #if DEBUG check first. Good luck!
Copyright © 2003-2010 Falafel Software Inc.
The opinions expressed herein are Falafel's employees own personal opinions and do not represent Falafel Software's view in any way in case they go bananas!