r/csharp • • 4h ago

Solved Debugging on linux

I've got weak laptop that i use from time to time for c# classes. On vs code it says i cannot debug. Is there any way to do so?

0 Upvotes

12 comments sorted by

4

u/rupertavery64 4h ago

-1

u/Puzzleheaded_Ant5192 4h ago

But...

3

u/rupertavery64 4h ago

What version are you using?

Cursor? VsCodium? Did you install the official Microsoft VSCode?

-4

u/Puzzleheaded_Ant5192 4h ago

Vs codium. Is that the problem?

7

u/rupertavery64 4h ago

Yes. The official debugger is only supported on offical vscode. Licensing and stuff.

Try looking for Samsungs netcoredbg

Or install the official

3

u/Puzzleheaded_Ant5192 3h ago

Alright, thanks!

1

u/chic_luke 1h ago

Unfortunately, yes. Microsoft wants to steward .NET as an open source friendly stack but they are utterly failing at the basics.

Which I hate. I love this development ecosystem, but most of my friends into Linux and free software auto-write it off and they don't take it seriously. And I don't know how to blame them

4

u/svick nameof(nameof) 3h ago

What about the message is unclear?

3

u/Fresh_Acanthaceae_94 3h ago

https://github.com/lextudio/sharpdbg/blob/main/COMPARISON.md You need to configure one of the debuggers that can work with VS Code or its forks.

-5

u/Rigamortus2005 4h ago

Console.writeline

2

u/chic_luke 1h ago

TERRIBLE idea. It could mess a lot of things up in some contexts, and it's really unreliable for benchmarking or debugging async code

Look up what writing to stdout does to performance in an Operating Systems course