{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/50927","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/50927/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/50927/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/50927/events","html_url":"https://github.com/Microsoft/vscode/issues/50927","id":328433077,"node_id":"MDU6SXNzdWUzMjg0MzMwNzc=","number":50927,"title":"Wrong path to node in debugger","user":{"login":"modestotech","id":31730051,"node_id":"MDQ6VXNlcjMxNzMwMDUx","avatar_url":"https://avatars3.githubusercontent.com/u/31730051?v=4","gravatar_id":"","url":"https://api.github.com/users/modestotech","html_url":"https://github.com/modestotech","followers_url":"https://api.github.com/users/modestotech/followers","following_url":"https://api.github.com/users/modestotech/following{/other_user}","gists_url":"https://api.github.com/users/modestotech/gists{/gist_id}","starred_url":"https://api.github.com/users/modestotech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modestotech/subscriptions","organizations_url":"https://api.github.com/users/modestotech/orgs","repos_url":"https://api.github.com/users/modestotech/repos","events_url":"https://api.github.com/users/modestotech/events{/privacy}","received_events_url":"https://api.github.com/users/modestotech/received_events","type":"User","site_admin":false},"labels":[{"id":291054922,"node_id":"MDU6TGFiZWwyOTEwNTQ5MjI=","url":"https://api.github.com/repos/Microsoft/vscode/labels/debug","name":"debug","color":"1d76db","default":false},{"id":272689423,"node_id":"MDU6TGFiZWwyNzI2ODk0MjM=","url":"https://api.github.com/repos/Microsoft/vscode/labels/needs%20more%20info","name":"needs more info","color":"E2A1C2","default":false}],"state":"open","locked":false,"assignee":{"login":"weinand","id":1898161,"node_id":"MDQ6VXNlcjE4OTgxNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/1898161?v=4","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,"node_id":"MDQ6VXNlcjE4OTgxNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/1898161?v=4","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":2,"created_at":"2018-06-01T08:49:39Z","updated_at":"2018-06-01T09:37:22Z","closed_at":null,"author_association":"NONE","body":"Issue Type: <b>Bug</b>\r\n\r\nUse the following config on a node project, no matter if it's hello world or more complex:\r\n```\r\n{\r\n  \"version\": \"0.2.0\",\r\n  \"configurations\": [\r\n    {\r\n      \"type\": \"node\",\r\n      \"request\": \"launch\",\r\n      \"name\": \"Launch via NPM\",\r\n      \"program\": \"${workspaceFolder}/server.js\",\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nI expect the debugger to work, but get the following in the debug console: \r\nusr/local/bin/node --inspect-brk=44832 server.js \r\nNode process error: Error: spawn usr/local/bin/node ENOENT\r\n\r\nDid some troubleshooting and googling but found no solution. Then I noticed that there's missing a forward slash in the node path, so I added the following to the config: \"runtimeExecutable\": \"/usr/local/bin/node\", then it worked. \r\n\r\nI tried to use \"runtimeExecutable\": \"node\" and then got the path with the missing forward slash. 'which node' in terminal outputs /usr/local/bin/node.\r\n\r\nWhere is the erronous path coming from?\r\n\r\n\r\nVS Code version: Code 1.23.1 (d0182c3417d225529c6d5ad24b7572815d0de9ac, 2018-05-10T16:03:31.083Z)\r\nOS version: Darwin x64 17.5.0\r\n\r\n<details>\r\n<summary>System Info</summary>\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (8 x 2200)|\r\n|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>native_gpu_memory_buffers: enabled<br>rasterization: enabled<br>video_decode: enabled<br>video_encode: enabled<br>vpx_decode: enabled<br>webgl: enabled<br>webgl2: enabled|\r\n|Load (avg)|2, 2, 2|\r\n|Memory (System)|16.00GB (0.17GB free)|\r\n|Process Argv|/Applications/Visual Studio Code.app/Contents/MacOS/Electron|\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\r\n</details><details><summary>Extensions (9)</summary>\r\n\r\nExtension|Author (truncated)|Version\r\n---|---|---\r\nmaterial-icon-theme|PKi|3.5.0\r\ncode-settings-sync|Sha|2.9.2\r\nvscode-eslint|dba|1.4.10\r\ngithistory|don|0.4.1\r\ngitlens|eam|8.3.3\r\nprettier-vscode|esb|1.3.1\r\nintellij-idea-keybindings|k--|0.2.23\r\nnode-module-intellisense|lei|1.5.0\r\ndebugger-for-chrome|msj|4.4.3\r\n\r\n\r\n</details>\r\n<!-- generated by issue reporter -->"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/393828473","html_url":"https://github.com/Microsoft/vscode/issues/50927#issuecomment-393828473","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/50927","id":393828473,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzgyODQ3Mw==","user":{"login":"weinand","id":1898161,"node_id":"MDQ6VXNlcjE4OTgxNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/1898161?v=4","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":"2018-06-01T09:37:22Z","updated_at":"2018-06-01T09:37:22Z","author_association":"MEMBER","body":"@modestotech what happens if you run `node --version` from the command line?"}}
{"actor":{"display_login":"weinand"}}