Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

Debug Checking

I have searched and probably overlooked the solution, but I would like to add a bit of code in my application that basically says if not running in debug mode, delete a file, else do not delete.  How can I do that, isn't there some application specific variable that will tell me that?

Thanks,
Kendal
0
gvector1
Asked:
gvector1
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
System.Diagnostics.Debugger.IsAttached returns True when you are running from within the IDE with the debugger.
0
 
gvector1Author Commented:
Thanks a million,
Kendal
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now