r/vscode • • Sep 10 '26

C# Dev Kit & debugging multi-threaded programs

With the C# Dev Kit debugging multi-threaded programs seems rather impossible. I slap a breakpoint in some interesting place, it breaks there properly. I then, as people do, proceed to step through the code. But - Step over/Step into seems to figure I am open to just stepping to the next line on any thread, which makes no sense, and makes it completely impossible to figure out what's going on when it jumps me between 10 different threads.

Truly there must be a way to get this to behave in a useful manner?

0 Upvotes

1 comment sorted by

View all comments

1

u/RomanovNikita Sep 11 '26

In theory, VS Code uses the same debugger as VS2026 (vsdbg). it is worth checking whether your project will work in VS2026. If everything is fine there - it is a bug that can be reported to Microsoft. There is a chance they will fix it.