Welcome to MSDN Blogs Sign in | Join | Help

How to check whether the assembly in debug mode

Assembly assembly = Assembly.LoadFile(@"D:\WCF\WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\WindowsFormsApplication3.exe");

object[] attributes = assembly.GetCustomAttributes(typeof(System.Diagnostics.DebuggableAttribute), true);

if ((attributes != null ) && (attributes.Length > 0))

{

MessageBox.Show("Debug mode:");

}

 

Published Friday, December 07, 2007 8:31 AM by Prakash

Comments

# MSDN Blog Postings » How to check whether the assembly in debug mode

Anonymous comments are disabled
 
Page view tracker