-
I have tried a lot and I can't set breakpoint inside coreclr, like
What I have done so far: Get the codeHead to https://github.com/dotnet/runtime/releases , download .NET 9 RC 2 and unzip it. Full build in terminal
coreclr build artifacts are inside
Open with CLion
Open CLion and coreclr directory, it will recognize it as cmake project, and enable the preset profile Attempt 1 debug corerun`main
Open target Now set the breakpoint for main function, hit Debug button, here we go: Attempt 2 debug coreclr`EEStartup
Open target Now set the breakpoint for EEStartup function, hit Debug button, here we go: It just run to end, without hitting the breakpoint. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
The steps performed looks similar to steps for Visual Studio. I'm not familiar with CLion.
They are set by the environment variable CORE_LIBRARIES. Some potential troubleshooting approaches:
|
Beta Was this translation helpful? Give feedback.
I found these Stripping lines in the output of build.
I found there is an option to configure if keep the native symbols or not, which is
--keepnativesymbols
, but previously I can not build with this option, now I figured it out with option--keepnativesymbols true
.The complete build command is
After build like this, breakpoint debugging inside coreclr works well.