✅ Fedora 40, dotnet 8 sdk, can’t use debugging tools in vscode.
Hi, has anyone else had a similar issue with dotnet on Fedora 40 or in general?
Haven’t found much online about this problem. I was only able to find solutions related to dotnet-ef which didn’t resolve my issue. I can’t start debugging my C# code due to this error. Path to executable is correct and when I run dotnet —version command in terminal, it outputs sdk’s version which is 8.0.108.
This happens both in vscode and when just running through the terminal.
47 Replies
@warriormaster share the output of
dotnet --info
One moment
@beware of the leopard Here's the output.
Sdk was installed via dnf-package manager as Microsoft’s site recommended.
https://discussion.fedoraproject.org/t/dotnet-8-xx-packages-on-fedora-40-updates-repo-do-not-istall-sdk-correctly/130501/2
Found this forum and tried to update dotnet to a bit newer version (8.0.402). Nothing, still happens.
Fedora Discussion
Dotnet 8.xx packages on fedora (40) "updates" repo do not istall SD...
It seems to work for me: > sudo dnf list dotnet* --installed Installed Packages dotnet-apphost-pack-8.0.x86_64 8.0.8-1.fc40 @updates dotnet-host.x86_64 8.0.8-1.fc40 @updates dotnet-hostfxr-8.0.x86_64 8.0.8-1.fc40 @updates dotnet-runtime-8.0.x86_64 8.0.8-1.fc40 @...
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
@TeBeCo So how does this would apply in the case of Godot? Based on Godot's documentation: https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_basics.html
I just need to create tasks.json and launch.json to get debugging working in vscode. That I don't even need to install any dotnet tools.
Godot Engine documentation
C# basics
Introduction: This page provides a brief introduction to C#, both what it is and how to use it in Godot. Afterwards, you may want to look at how to use specific features, read about the differences...
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
I could try another reboot since I just installed mono-dev package according to godot's doc. But it is very weird how I can I launch and build a project but not debug the C# code. Normally godot wouldn't even open if dotnet-sdk wasn't installed.
The documentation mentioned something about installing mono on linux systems
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
This is the link that godot documentation pointed to https://www.mono-project.com/download/stable/#download-lin
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Godot Engine documentation
C# basics
Introduction: This page provides a brief introduction to C#, both what it is and how to use it in Godot. Afterwards, you may want to look at how to use specific features, read about the differences...
Basically ran
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
No worries. I'm just glad to receive help :)
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Brilliant :D
No luck rebooting:
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Mono or godot?
As far as I understood, it’s only for 4.4 and up
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
That's a link to .net version of godot, not sdk.
If you mean this sdk then like I said. It's only for 4.4 and up
https://www.nuget.org/packages/Godot.NET.Sdk/4.4.0-dev.3
Godot.NET.Sdk 4.4.0-dev.3
MSBuild .NET Sdk for Godot projects.
And I use 4.3
Basically mono is with c# support and linux stable is only gdscript.
Here's everything that I have in PATH:
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
No
Don't remember how to do it.
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
You can in godot create a node in the scene and add a c# script to that.
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Sorry for taking some time to respond
I'll try it.
Just forgot to draw NewScript.cs to MainScene node
@TeBeCo just tried the alias:
Alias itself works as expected.
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Maybe my ssd is dying? Though I bought this laptop last year so should be very unlikely.
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
I assumed that's what the launch.json does behind the scenes
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Which vscode extensions you have installed?
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
You've got to be kidding me if this debugging didn't work because I used vscodium instead of vscode.
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Did you install vscode via dnf?
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
I think I'm going to blow my brains
It FUCKING worked
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
If you have no further questions, please use /close to mark the forum thread as answered
Same here
I guess don't use vscodium
And thank you very much
You are true hero 💪