Can you SSH into the remote machine? Visual Studio Code offers quite solid remote development tools through ssh (maybe other means too): https://code.visualstudio.com/docs/remote/remote-overview
I would guess that it also supports debugging.
I would guess that it also supports debugging.
(Thanks also to matthias247, who also suggested this.)