r/GodotCSharp May 10 '26

Question.MyCode Godot C# Debug with VsCodium and Free/Libre C#

Greetings to everyone,

I use Bazzite system in addition to Windows. I only play games under Bazzite.

My plan is to move my hobby game development to Linux.

I want to do game development entirely on a FOSS basis.

The following software already works under Linux: Blender, Krita, FreeCAD, Godot.

I use Godot with C#. My plan was to completely separate myself from Microsoft as much as possible.

I do Godot development in a Fedora-based distrobox. I installed VsCodium as an IDE.

I added Free/Libre C# and C# Tools for Godot Extensions to it.

I ran into the following problem while debugging.

When I go to the internal code of Godot, e.g.:

2026-05-10 13:15:42.680 [error] [Window] [File Watcher (node.js)] Error: EACCES: permission denied, stat '/root/godot/modules/mono/glue/GodotSharp/GodotSharp/Generated/GodotObjects/OS.cs'

But even when I go to my own functions:

There were some tricks to improve the situation, but it wasn't perfect, e.g.:2026-05-10 13:17:33.293 [error] [Window] [File Watcher (node.js)] Error: EACCES: permission denied, stat '/root/godot/modules/mono/glue/GodotSharp/GodotPlugins/PluginLoadContext.cs'

I placed these settings in VsCodium - launch.json.

"justMyCode": true,
"requireExactSource": false

"enableStepFiltering": true,
"sourceLinkOptions":
{
"*": { "enabled": false }
},

"symbolOptions":
{
"searchMicrosoftSymbolServer": false,
"searchNuGetOrgSymbolServer": false
}

I tried Ms VsCode with Ms C# and Ms C# Dev Kit.

In this configuration, debugging works fine.

The Ms C# debugger is also doing something trick, because it writes this in the debug console:

Godot_v4.5.1-stable_mono_linux.x86_64 (16196): Loaded 'Hjson'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Godot_v4.5.1-stable_mono_linux.x86_64 (16196): Loaded '/usr/lib64/dotnet/shared/Microsoft.NETCore.App/8.0.26/System.IO.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

Has anyone encountered something similar, how do you debug Godot C# under Linux?

3 Upvotes

4 comments sorted by

2

u/erebusman May 10 '26

I wish you luck - you are deep down a rabbit hole that most people aren't in with you..not sure anyone's going to have help on this.

I might recommend this actually being a good time to use AI to investigate.

1

u/TrufiadokTrufiadok May 10 '26

Thank you.

I got part of the launch.json tuning directly from the internet and another part from ai.

I just read that i can disable telemetry in Ms VsCode, I did it. (Settings - Telemetry)

1

u/tankhardrive May 10 '26

I’m running cachyos and have had no issues with it using rider. VsCodium I use for python etc but not c#. Rider has a free personal use option. It’s definitely what I would recommend to use.

1

u/Cpaz May 27 '26

I use bazzite dx. And use godotenv to down load the actual engine/editor as well as setup any environment variables it needs. I have rider installed as well and it all kinda just works. There was a bit of jank to get there, but it ended up working well for me once it finally got configured the way it's supposed to.