I tested that in VS2019 v16.6 and it debugged without any preventing. But when the .Net version increased to v4.0 or later version then the IsDebuggerPresent method gets true and detected debugging!
See debugging which breakpoint is in WaitForDebugger() method:
Hi,
I tested that in VS2019 v16.6 and it debugged without any preventing. But when the .Net version increased to v4.0 or later version then the
IsDebuggerPresent
method gets true and detected debugging!See debugging which breakpoint is in
WaitForDebugger()
method: