←back to thread

376 points turrini | 2 comments | | HN request time: 1.086s | source
Show context
malkia ◴[] No.42148800[source]
In case you are in Windows, and connected to Linux and/or using WSL, you can also use WinDBG/VisualStudio to debug (remotely) Linux processes!
replies(1): >>42151058 #
dgfitz ◴[] No.42151058[source]
As long as you have gdbserver running on the remote end, no?
replies(1): >>42155153 #
1. asyx ◴[] No.42155153[source]
This is usually not how wsl stuff is implemented. Usually applications set up the Windows to WSL communication themselves including Microsoft products. Might be different in this case of course but then the experience would be a lot less smooth than what Microsoft themselves set as the default with the VSCode remote extension.
replies(1): >>42157222 #
2. dgfitz ◴[] No.42157222[source]
I keyed off “Linux and/or wsl” specifically. I didn’t know wsl had that interoperability cooked in, I would have assumed the vm still needed gdbserver running in order to connect for a “remote” debug session.