Is there any way that my code can tell the difference between "I am executing in normal process context" and "I have been executed from the Immediate Window of the Debugger"?
I have a library object which exposes a public property. When using the release version of that library, but debugging an application that has loaded the DLL containing that library, if I change the property from the Immediate Window (x.prop = true), I would like my property code to detect this and execute differently.
Is there a way to detect this?
For convenience sake, I would also like this to work when I am using the debug version of that library. So, I can't just check to see if there's a debugger attached, and branch from there.