dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.41k stars 4.76k forks source link

Adds Linux CMake presets for coreclr #110029

Open MattBolitho opened 1 day ago

MattBolitho commented 1 day ago

I noticed when opening this project in CLion on Ubuntu that presets are supported for Windows and macOS but not Linux. As macOS support was added recently in #109061, I thought I'd raise this small PR to include Linux x64 as well.

MattBolitho commented 1 day ago

@dotnet-policy-service agree

dotnet-policy-service[bot] commented 1 day ago

Tagging subscribers to this area: @hoyosjs See info in area-owners.md if you want to be subscribed.

MattBolitho commented 1 day ago

Tagging @huoyaoyuan as per the original contributions to this file

EgorBo commented 21 hours ago

@MattBolitho I am just curious - what are the steps to be able to debug code in CLion for coreclr repo with sources?

huoyaoyuan commented 21 hours ago

The step should be similar to Visual Studio, see #109097

EgorBo commented 21 hours ago

The step should be similar to Visual Studio, see #109097

I am not asking about debugging with source stepping. I am interested in proper intellisense. From my understanding the workflow is a bit more complex

MattBolitho commented 9 hours ago

LGTM, requires an official member to check this in.

Thank you for your feedback! I will tag @jkoritzinsky as they merged the previous PR I referenced.

what are the steps to be able to debug code in CLion for coreclr repo with sources?

@EgorBo - I didn't do any deep debugging for the sake of raising this PR yet. My plan is to use CMAKE_EXPORT_COMPILE_COMMANDS with clangd. It works really nicely in VS Code and as clangd is bundled with CLion, it should be possible to replicate that setup. I can try to update later, feel free to suggest the best forum for that.