troubleshooting Question

Specific action only when debugger is running

Avatar of willmrk
willmrk asked on
Visual Basic.NET
2 Comments1 Solution163 ViewsLast Modified:

how do I go about doing a specific thing or setting a variable when the debugger is running? I believe I may be able to use the DTE object in some way, but I havent been able to figure it out.

here's an example of how I would like to use it...

If doSomeFunctionToDetermineIfDebuggerRunning then debugMode = true

The reason I would like to know is because while we are debugging our code, I want to work with normal XML files (for ease of use). But when making a release, I want the XMLs to be encrypted.

Any help would be appreciated.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros