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
I'm building code base on this guide and trying to set breakpoints in both native and managed code. When debugger type set to either native-only or managed-only, it works properly.
However, when set to mixed mode, only managed breakpoints work, and native breakpoints show the following message "Breakpoints in coreclr.dll are not allowed. This module contains the implementation for the underlying runtime that you are trying to debug".
Is this a limitation, or can I make some adjustment to enable this functionality?
The text was updated successfully, but these errors were encountered:
I'm not the area expert, but not too long ago I was given this guidance and it worked for me, I was able to set native and managed breakpoints. @hoyosjs would you say this is still accurate?:
It's not recommended to build coreclr in debug because it's extremely noisy. But if you do, make sure to enable these environment variables:
COMPlus_ContinueOnAssert=1
COMPlus_SuppressChecks=1
Alternatively (recommended) build coreclr in release mode but without optimization:
build clr.corelib+clr.nativecorelib+libs.pretest -rc release /p:Optimize=false
For both cases, if you are using VS Code, remember to set this in your launch.json:
SuppressJitOptimizations=true
Yeah, that's a known limitation. You can't debug into the runtime. There's message passing that might result in a dead lock so mixed mode disables coreclr breakpoints. You can use windbg to sort of do this but it's not a very smooth experience compared to VS. As for mixed mode, that's meant for stepping into pinvokes.
I'm building code base on this guide and trying to set breakpoints in both native and managed code. When debugger type set to either native-only or managed-only, it works properly.
However, when set to mixed mode, only managed breakpoints work, and native breakpoints show the following message "Breakpoints in coreclr.dll are not allowed. This module contains the implementation for the underlying runtime that you are trying to debug".
Is this a limitation, or can I make some adjustment to enable this functionality?
The text was updated successfully, but these errors were encountered: