You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use RegisterForRuntimeStartup to find out about the new process
When RegisterForRuntimeStartup fires the handler, call DebugActiveProcess and return
Expected:
Debugger should successfully finish the hookup before any managed code runs
Actual:
There is a race where sometimes managed code runs before the hookup finishes. CORDebuggerAttached gets set from coreclr!Debugger::MarkDebuggerAttachedInternal, which is being called from coreclr!Debugger::SuspendComplete.
We have seen this on various Linux distros. I can't tell for sure if this is an xplat-only problem (or maybe Linux only?) or if this applies to Windows also.