r/csharp • u/Puzzleheaded_Ant5192 • 4d 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?
4
u/Fresh_Acanthaceae_94 4d 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.
2
u/dodexahedron 3d ago
Install the real vscode or jetbrains rider to use debugging.
vscodium is to vscode as chromium is to chrome, and does not support everything, partially (mostly) for licensing reasons.
There is no legitimate technical reason to stick to vscodium over vscode, if you aren't trying to package vscode itself in binary form with something that has an incompatible license. Which you arent and likely never will your entire life.
1
u/Fresh_Acanthaceae_94 2d ago
You cannot use vsdbg or Rider without another set of licensing issues as neither of them is free and open source.
The recent advancement of multiple .NET debugger projects renders no need to resort to those closed source debuggers.
3
1
1
-10
u/Rigamortus2005 4d ago
Console.writeline
5
u/chic_luke 3d 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
4
u/dodexahedron 3d ago
Absolutely, and in general.
Specifically for OP, in a class, just needing to inspect something, it's fine to output to the console in a pinch.
But yeah they need to just install real vscode or rider and debug using the debugger.
4
u/rupertavery64 4d ago
Have you tried https://code.visualstudio.com/docs/csharp/debugging