{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/8955","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/8955/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/8955/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/8955/events","html_url":"https://github.com/Microsoft/vscode/issues/8955","id":164549958,"number":8955,"title":"Debugger unable to attach to process","user":{"login":"Wenzil","id":1967006,"avatar_url":"https://avatars.githubusercontent.com/u/1967006?v=3","gravatar_id":"","url":"https://api.github.com/users/Wenzil","html_url":"https://github.com/Wenzil","followers_url":"https://api.github.com/users/Wenzil/followers","following_url":"https://api.github.com/users/Wenzil/following{/other_user}","gists_url":"https://api.github.com/users/Wenzil/gists{/gist_id}","starred_url":"https://api.github.com/users/Wenzil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wenzil/subscriptions","organizations_url":"https://api.github.com/users/Wenzil/orgs","repos_url":"https://api.github.com/users/Wenzil/repos","events_url":"https://api.github.com/users/Wenzil/events{/privacy}","received_events_url":"https://api.github.com/users/Wenzil/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"weinand","id":1898161,"avatar_url":"https://avatars.githubusercontent.com/u/1898161?v=3","gravatar_id":"","url":"https://api.github.com/users/weinand","html_url":"https://github.com/weinand","followers_url":"https://api.github.com/users/weinand/followers","following_url":"https://api.github.com/users/weinand/following{/other_user}","gists_url":"https://api.github.com/users/weinand/gists{/gist_id}","starred_url":"https://api.github.com/users/weinand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weinand/subscriptions","organizations_url":"https://api.github.com/users/weinand/orgs","repos_url":"https://api.github.com/users/weinand/repos","events_url":"https://api.github.com/users/weinand/events{/privacy}","received_events_url":"https://api.github.com/users/weinand/received_events","type":"User","site_admin":false},"assignees":[{"login":"weinand","id":1898161,"avatar_url":"https://avatars.githubusercontent.com/u/1898161?v=3","gravatar_id":"","url":"https://api.github.com/users/weinand","html_url":"https://github.com/weinand","followers_url":"https://api.github.com/users/weinand/followers","following_url":"https://api.github.com/users/weinand/following{/other_user}","gists_url":"https://api.github.com/users/weinand/gists{/gist_id}","starred_url":"https://api.github.com/users/weinand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weinand/subscriptions","organizations_url":"https://api.github.com/users/weinand/orgs","repos_url":"https://api.github.com/users/weinand/repos","events_url":"https://api.github.com/users/weinand/events{/privacy}","received_events_url":"https://api.github.com/users/weinand/received_events","type":"User","site_admin":false}],"milestone":null,"comments":15,"created_at":"2016-07-08T15:00:55Z","updated_at":"2016-07-12T20:34:06Z","closed_at":"2016-07-11T08:00:03Z","body":"- VSCode Version: 1.3.0\r\n- OS Version: OS X Yosemite 10.10.4\r\n\r\nSteps to Reproduce:\r\n\r\n1. Open VSCode `code .`\r\n2. Configure launch configuration:\r\n```json\r\n{\r\n  \"version\": \"0.2.0\",\r\n  \"configurations\": [\r\n    {\r\n      \"name\": \"Attach to node\",\r\n      \"type\": \"node\",\r\n      \"request\": \"attach\",\r\n      \"address\": \"localhost\",\r\n      \"port\": 3000,\r\n      \"restart\": false\r\n    }\r\n  ]\r\n}\r\n```\r\n3. Launch node server listening on port 3000 `node ./index.js`\r\n4. Press F5 to launch the debugger\r\n\r\nThe debugger fails to attach to the node process with no error message. If I change the port in the launch to configuration to the default port (5858), I get the following error message: \r\n```\r\nCannot connect to runtime process (timeout after 10000 ms).\r\n```\r\n\r\n\r\n```js\r\n//index.js\r\n'use strict';\r\n\r\nconst http = require('http');\r\nconst port = 3000;\r\n\r\nconst server = http.createServer(function(request, response) {\r\n  response.end('Hello VSCode!');\r\n});\r\n\r\nserver.listen(port, function() {\r\n  console.log(`Listening on http://localhost:${port}`);\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/232171682","html_url":"https://github.com/Microsoft/vscode/issues/8955#issuecomment-232171682","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/8955","id":232171682,"user":{"login":"weinand","id":1898161,"avatar_url":"https://avatars.githubusercontent.com/u/1898161?v=3","gravatar_id":"","url":"https://api.github.com/users/weinand","html_url":"https://github.com/weinand","followers_url":"https://api.github.com/users/weinand/followers","following_url":"https://api.github.com/users/weinand/following{/other_user}","gists_url":"https://api.github.com/users/weinand/gists{/gist_id}","starred_url":"https://api.github.com/users/weinand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weinand/subscriptions","organizations_url":"https://api.github.com/users/weinand/orgs","repos_url":"https://api.github.com/users/weinand/repos","events_url":"https://api.github.com/users/weinand/events{/privacy}","received_events_url":"https://api.github.com/users/weinand/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T20:34:06Z","updated_at":"2016-07-12T20:34:06Z","body":"@Wenzil since you are remote debugging, you have to set \"localRoot\" and \"remoteRoot\" in your launch config if path names on both systems are not identical.\r\nPlease see \"Remote Debugging Node.js\" section in https://code.visualstudio.com/docs/editor/debugging."}}
{"actor":{"display_login":"weinand"}}