I’m doing some maintenance work on one of our old applications that is written in Visual Basic 6, and for various reasons, we have a part of the code that only needs to be run if we are running the program through the VB6 IDE (i.e., the debugger is attached).
In VB.NET, you can do this by using the System.Diagnostics.Debugger.IsAttached() property, but I can’t find anything similar in VB6 on Google.
Is there some easy way to figure this information out?
Here is what we are using that does not have any side effects