{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/78","repository_url":"https://api.github.com/repos/Microsoft/vscode-node-debug","labels_url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/78/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/78/events","html_url":"https://github.com/Microsoft/vscode-node-debug/issues/78","id":161973571,"number":78,"title":"Required to always use --debug-brk for node debugging?","user":{"login":"andrewconnell","id":2068657,"avatar_url":"https://avatars.githubusercontent.com/u/2068657?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewconnell","html_url":"https://github.com/andrewconnell","followers_url":"https://api.github.com/users/andrewconnell/followers","following_url":"https://api.github.com/users/andrewconnell/following{/other_user}","gists_url":"https://api.github.com/users/andrewconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewconnell/subscriptions","organizations_url":"https://api.github.com/users/andrewconnell/orgs","repos_url":"https://api.github.com/users/andrewconnell/repos","events_url":"https://api.github.com/users/andrewconnell/events{/privacy}","received_events_url":"https://api.github.com/users/andrewconnell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode-node-debug/labels/debug","name":"debug","color":"ededed"},{"url":"https://api.github.com/repos/Microsoft/vscode-node-debug/labels/needs%20more%20info","name":"needs more info","color":"fef2c0"}],"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":5,"created_at":"2016-06-23T17:03:47Z","updated_at":"2016-07-02T19:56:00Z","closed_at":"2016-07-02T19:56:00Z","body":"TLDR: \r\nIs it a set requirement that to debug Node.js applications you must start them (either in when *launch* or *attach*) with `--debug-brk`? It seems this is required... the behavior is almost like when the breakpoint is set in a `*.ts`, VSCode maps it to the equiv. `*.js` using the sourcemap... but if it doens't have the sourcemap, it doesn't resolve it... as in the case when you create a breakpoint BEFORE launching / attaching to a running process.\r\n\r\nResult - you can't keep breakpoints between sessions... you have to clear them all out each time OR toggle them on/off when starting a new debugging session.\r\n\r\nMORE:\r\nThe only way I can hit a breakpoint in a TypeScript file is if I do the following:\r\n1. start the node process using `--debug-brk`... once VSCode hits the first line in the process...\r\n1. I then set the breakpoint(s)\r\n1. Hit F5 to go to the first breakpoint\r\n\r\nIf I set the breakpoint BEFORE attaching, VSCode won't hit the breakpoint (grey breakpoint because it can't find the sourcemap... but the sourcemap is valid... proven by using the MORE method above with no change to the source `*.ts` or transpiled `*.js` files.\r\n\r\nIf I set the breakpoint AFTER attaching, it works exactly how you'd expect it.\r\n\r\n> EDIT: BTW, including / excluding `--nolazy` has zero effect\r\n\r\nUsing Node.js v5.11.1, VSCode 1.2.1 & testing this using a simple console app that writes a message to the console."},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/comments/230119151","html_url":"https://github.com/Microsoft/vscode-node-debug/issues/78#issuecomment-230119151","issue_url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/78","id":230119151,"user":{"login":"andrewconnell","id":2068657,"avatar_url":"https://avatars.githubusercontent.com/u/2068657?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewconnell","html_url":"https://github.com/andrewconnell","followers_url":"https://api.github.com/users/andrewconnell/followers","following_url":"https://api.github.com/users/andrewconnell/following{/other_user}","gists_url":"https://api.github.com/users/andrewconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewconnell/subscriptions","organizations_url":"https://api.github.com/users/andrewconnell/orgs","repos_url":"https://api.github.com/users/andrewconnell/repos","events_url":"https://api.github.com/users/andrewconnell/events{/privacy}","received_events_url":"https://api.github.com/users/andrewconnell/received_events","type":"User","site_admin":false},"created_at":"2016-07-02T19:56:00Z","updated_at":"2016-07-02T19:56:00Z","body":"Dang... thanks @weinand ... I wasn't aware the `outDir` needed to be set in the `launch.json`. I thought that was being fed from `tsconfig.json`. The token in the string replacement in your response was the clue. You're right... I have it working now. Thanks! Going to go back and look at the docs... possibly submitting a PR to clarify the docs.\r\n\r\nWasn't aware the `program` property could point to the source TypeScript file. Thanks!\r\n\r\nRegarding the null inline TypeScript... thanks for mentioning it. Recent update to the gulp task I'm using must have screwed that up. They were being generated until recently ... I'll get that fixed. Thanks!"}}
{"actor":{"display_login":"andrewconnell"}}