all groups > visual studio .net debugging > september 2007 >
You're in the

visual studio .net debugging

group:

Figuring out if app is running in Debug mode at runtime



Figuring out if app is running in Debug mode at runtime michael
9/11/2007 7:46:07 AM
visual studio .net debugging: Is there a way to determine the "Solution Configuration" (Debug/Release) at
runtime? I use Me.DesignMode to determine if the component is currently in
the designer but I'm looking for similar functionality the tell me at runtime
if it's running in the debugger or release mode.

--
RE: Figuring out if app is running in Debug mode at runtime Manish Bafna
9/12/2007 9:22:00 PM
Hi,
Try this code :
public static bool IsDebugMode = false;
if (System.Diagnostics.Debugger.IsAttached) IsDebugMode = true;
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



[quoted text, click to view]
RE: Figuring out if app is running in Debug mode at runtime michael
9/13/2007 5:02:01 AM
Works like a charm!

--
Michael


[quoted text, click to view]
AddThis Social Bookmark Button