{"action":"created","issue":{"url":"https://api.github.com/repos/node-inspector/node-inspector/issues/834","repository_url":"https://api.github.com/repos/node-inspector/node-inspector","labels_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/834/labels{/name}","comments_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/834/comments","events_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/834/events","html_url":"https://github.com/node-inspector/node-inspector/issues/834","id":138289563,"number":834,"title":"process._debugProcess weirdness","user":{"login":"samodadela","id":16334222,"avatar_url":"https://avatars.githubusercontent.com/u/16334222?v=3","gravatar_id":"","url":"https://api.github.com/users/samodadela","html_url":"https://github.com/samodadela","followers_url":"https://api.github.com/users/samodadela/followers","following_url":"https://api.github.com/users/samodadela/following{/other_user}","gists_url":"https://api.github.com/users/samodadela/gists{/gist_id}","starred_url":"https://api.github.com/users/samodadela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samodadela/subscriptions","organizations_url":"https://api.github.com/users/samodadela/orgs","repos_url":"https://api.github.com/users/samodadela/repos","events_url":"https://api.github.com/users/samodadela/events{/privacy}","received_events_url":"https://api.github.com/users/samodadela/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-03T20:32:45Z","updated_at":"2016-03-05T22:09:02Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to debug my script that is being invoked from some other script - i.e. I can't start node in debug mode. In my script I display it's PID and then use tasklist:\r\n\r\n```\r\nC:\\Users\\Samo>tasklist /FI \"IMAGENAME eq node.exe\"\r\n\r\nImage Name                     PID Session Name        Session#    Mem Usage\r\n========================= ======== ================ =========== ============\r\nnode.exe                      3944 Console                    1     64,016 K\r\nnode.exe                      3280 Console                    1    119,276 K\r\n```\r\n\r\nMy script is in an endless loop calling npm sleep and displaying it's PID:\r\n```\r\nPID=3280\r\nPID=3280\r\n```\r\n\r\nNow what I don't understand... If I do:\r\n`process._debugProcess(3280) `\r\n(that's the PID I'm writing out) nothing happens\r\n\r\nBut if I do:\r\n`process._debugProcess(3944) `\r\nI get the \"Starting debugger agent.\" message.\r\n\r\nWhy can't I attach to 3280?\r\n\r\nHere's more [info](http://stackoverflow.com/questions/35735020/how-to-debug-javascript-in-nodejs-on-windows-when-im-not-the-caller-of-node-exe)\r\n"},"comment":{"url":"https://api.github.com/repos/node-inspector/node-inspector/issues/comments/192750776","html_url":"https://github.com/node-inspector/node-inspector/issues/834#issuecomment-192750776","issue_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/834","id":192750776,"user":{"login":"3y3","id":3931155,"avatar_url":"https://avatars.githubusercontent.com/u/3931155?v=3","gravatar_id":"","url":"https://api.github.com/users/3y3","html_url":"https://github.com/3y3","followers_url":"https://api.github.com/users/3y3/followers","following_url":"https://api.github.com/users/3y3/following{/other_user}","gists_url":"https://api.github.com/users/3y3/gists{/gist_id}","starred_url":"https://api.github.com/users/3y3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3y3/subscriptions","organizations_url":"https://api.github.com/users/3y3/orgs","repos_url":"https://api.github.com/users/3y3/repos","events_url":"https://api.github.com/users/3y3/events{/privacy}","received_events_url":"https://api.github.com/users/3y3/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T22:09:02Z","updated_at":"2016-03-05T22:09:02Z","body":"Are you removed `sleep` in this case?\r\nI can't understand why this doesn't work for you...\r\nLast chance - `kill -s USR1 <pid>`"}}