Debugging
Debugging & Remote Attach (VS Code) — Deep Guide
1) Python (debugpy)
Local attach
import debugpy
print('[*] starting debug server on 0.0.0.0:5678')
debugpy.listen(('0.0.0.0', 5678))
debugpy.wait_for_client() # optional if you want to break immediately{
"version": "0.2.0",
"configurations": [
{
"name": "Attach (debugpy)",
"type": "python",
"request": "attach",
"host": "127.0.0.1",
"port": 5678
}
]
}Remote attach (SSH/VM/container)
Breakpoints & Watch
2) Node.js (Inspector)
Start with inspector
VS Code attach
Debugging WebSockets & front‑end
3) Java (JDWP)
Enable remote debug flags
VS Code (Extension Pack for Java)
Tips
4) PHP (Xdebug)
Install & configure
VS Code
Remote
5) .NET (vsdbg)
Remote debugging Linux
Windows
6) Remote Attach JavaScript file (front‑end)
Live editing & breakpoints
VS Code Edge/Chrome Debugging
7) Containers & SSH
8) Breakpoint Strategy
Last updated