r/csharp • • 1d 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?

2 Upvotes

15 comments sorted by

View all comments

-10

u/Rigamortus2005 1d ago

Console.writeline

5

u/chic_luke 1d 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 23h 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.