I was reviewing some old code samples I had laying around
(cleaning off the hard drive so my backup set will fit onto a
single 4GB DVD) and came across one about determing if you're
running inside the VS.NET IDE. Well, VS.NET is a debugger, so
you can use
System.Diagnostics.Debugger.IsAttached.