A DAP-compatible JavaScript debugger. Used in VS Code, VS, + more
MIT License
1.67k
stars
283
forks
source link
It doesn't attach to processes in docker containers running under root (Attach to process: cannot enable debug mode for process '...' (Error: kill EPERM)) #2042
Describe the bug See the title.
To Reproduce Steps to reproduce the behavior:
a.js
:Ctrl-Shift-P
node --inspect-brk
process and you'll see:With the following command it works (I assume here that you're running under UID
1000
):This happens because the target process is unconditionally sent
SIGUSR1
, although the process might already be in debug mode.Log File
VS Code Version: 1.91.0
Additional context It was supposedly fixed, but it's not.