Can you test for the debugger at runtime?

  • Thread starter Thread starter John Heitmuller.
  • Start date Start date
J

John Heitmuller.

Hi, does anybody know if you can programmatically test within a VS
2005 VB.NET Windows app to see if the application is running in the
debugger? I have some extra controls on a Windows form that display
useful info when testing the app. I've set visible to false for these
controls for the user version. If I'm running the app in the debugger
I'd like to set visible to true for these debug controls in the form
load event handler.

Thanks,
John
 
John Heitmuller. said:
Hi, does anybody know if you can programmatically test within a VS
2005 VB.NET Windows app to see if the application is running in the
debugger? I have some extra controls on a Windows form that display
useful info when testing the app. I've set visible to false for
these controls for the user version. If I'm running the app in the
debugger I'd like to set visible to true for these debug controls in
the form load event handler.

Debugger.IsAttached


Armin
 
Back
Top