How to Debug a C# program with LLDB?
People > Companies ❤️ - programming.dev [Unofficial]
June 8, 2026
submitted by dr_robotBones to programming 8 points | 11 comments
I found few resources online which may have lead me astray, as I can’t get even basic functionality out of LLDB.
I used the dotnet-sos tool to supposedly automatically load SOS into LLDB and I attached LLDB to my program’s process, but I am getting errors when trying to use any command:
error: 'bpmd' is not a valid command.
error: 'clrstack' is not a valid command.
Its behaving as if SOS isn’t installed, I think? I really don’t know what is going on, searching for these errors gives me nothing which is insane, usually there would be GitHub issues or Stack Overflow posts. I think I’m about to never touch C# ever again.
Discussion in the ATmosphere