Skip to content

Instantly share code, notes, and snippets.

View djabraham's full-sized avatar

Daniel Abraham djabraham

View GitHub Profile
//
// THIS IS NO LONGER NECESSARY, VSCODE CAN DO REMOTE DEBUGGING NOW..
//
// Published @ http://code.xpotent.com/2015/12/debugging-nodejs-within-docker.html
//
// VSCode requests a PID at the onset of a debugging session and monitors the process
// to detect when it is no longer running. For some reason, VSCode does not rely on socket
// state to determine this. VSCode monitors the pid and will exit if it isn't active.
//
// This proxy detects the pid within one of the initial debug messages from a node instance