{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/33566","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/33566/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/33566/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/33566/events","html_url":"https://github.com/Microsoft/vscode/issues/33566","id":254202289,"number":33566,"title":"Breakpoints for uncaught exceptions do not get triggered for extension development","user":{"login":"msafi","id":4027731,"avatar_url":"https://avatars2.githubusercontent.com/u/4027731?v=4","gravatar_id":"","url":"https://api.github.com/users/msafi","html_url":"https://github.com/msafi","followers_url":"https://api.github.com/users/msafi/followers","following_url":"https://api.github.com/users/msafi/following{/other_user}","gists_url":"https://api.github.com/users/msafi/gists{/gist_id}","starred_url":"https://api.github.com/users/msafi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msafi/subscriptions","organizations_url":"https://api.github.com/users/msafi/orgs","repos_url":"https://api.github.com/users/msafi/repos","events_url":"https://api.github.com/users/msafi/events{/privacy}","received_events_url":"https://api.github.com/users/msafi/received_events","type":"User","site_admin":false},"labels":[{"id":421131022,"url":"https://api.github.com/repos/Microsoft/vscode/labels/as-designed","name":"as-designed","color":"E2A1C2","default":false},{"id":291054922,"url":"https://api.github.com/repos/Microsoft/vscode/labels/debug","name":"debug","color":"1d76db","default":false},{"id":272689423,"url":"https://api.github.com/repos/Microsoft/vscode/labels/needs%20more%20info","name":"needs more info","color":"708090","default":false}],"state":"closed","locked":false,"assignee":{"login":"roblourens","id":323878,"avatar_url":"https://avatars3.githubusercontent.com/u/323878?v=4","gravatar_id":"","url":"https://api.github.com/users/roblourens","html_url":"https://github.com/roblourens","followers_url":"https://api.github.com/users/roblourens/followers","following_url":"https://api.github.com/users/roblourens/following{/other_user}","gists_url":"https://api.github.com/users/roblourens/gists{/gist_id}","starred_url":"https://api.github.com/users/roblourens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblourens/subscriptions","organizations_url":"https://api.github.com/users/roblourens/orgs","repos_url":"https://api.github.com/users/roblourens/repos","events_url":"https://api.github.com/users/roblourens/events{/privacy}","received_events_url":"https://api.github.com/users/roblourens/received_events","type":"User","site_admin":false},"assignees":[{"login":"roblourens","id":323878,"avatar_url":"https://avatars3.githubusercontent.com/u/323878?v=4","gravatar_id":"","url":"https://api.github.com/users/roblourens","html_url":"https://github.com/roblourens","followers_url":"https://api.github.com/users/roblourens/followers","following_url":"https://api.github.com/users/roblourens/following{/other_user}","gists_url":"https://api.github.com/users/roblourens/gists{/gist_id}","starred_url":"https://api.github.com/users/roblourens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblourens/subscriptions","organizations_url":"https://api.github.com/users/roblourens/orgs","repos_url":"https://api.github.com/users/roblourens/repos","events_url":"https://api.github.com/users/roblourens/events{/privacy}","received_events_url":"https://api.github.com/users/roblourens/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-08-31T03:43:42Z","updated_at":"2017-08-31T18:15:58Z","closed_at":"2017-08-31T18:01:17Z","author_association":"NONE","body":"- VSCode Version: Code 1.15.1 (41abd21afdf7424c89319ee7cb0445cc6f376959, 2017-08-16T17:15:57.756Z)\r\n- OS Version: Darwin x64 16.7.0\r\n- Extensions: \r\n\r\nExtension|Author (truncated)|Version\r\n---|---|---\r\nActiveFileInStatusBar|Ros|1.0.3\r\nfind-word-at-cursor|mks|1.8.0\r\ncode-spell-checker|str|1.3.8\r\n---\r\n\r\nI'm assuming that when \"Uncaught Exceptions\" is checked under \"Breakpoints\" in the debug view, it will cause a breakpoint to get automatically set and execution will stop when an uncaught exception is encountered so that the developer can debug the issue.\r\n\r\nThat's not the behavior I'm observing. Instead, I see this in the Extension Development Host:\r\n\r\n![image](https://user-images.githubusercontent.com/4027731/29905445-ada4f690-8dc3-11e7-9ba5-a964621ae739.png)\r\n\r\n...and no breakpoint is set in the VS Code window where the source code is opened.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Use `yo code` to generate an extension.\r\n1. Open the extension in VS Code\r\n1. Add bad code some where or throw an error\r\n1. Run the extension with F5\r\n1. Call the extension with `extension.sayHello`\r\n1. No breakpoint gets triggered even though \"Uncaught Exceptions\" is checked (by default)"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/326379322","html_url":"https://github.com/Microsoft/vscode/issues/33566#issuecomment-326379322","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/33566","id":326379322,"user":{"login":"msafi","id":4027731,"avatar_url":"https://avatars2.githubusercontent.com/u/4027731?v=4","gravatar_id":"","url":"https://api.github.com/users/msafi","html_url":"https://github.com/msafi","followers_url":"https://api.github.com/users/msafi/followers","following_url":"https://api.github.com/users/msafi/following{/other_user}","gists_url":"https://api.github.com/users/msafi/gists{/gist_id}","starred_url":"https://api.github.com/users/msafi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msafi/subscriptions","organizations_url":"https://api.github.com/users/msafi/orgs","repos_url":"https://api.github.com/users/msafi/repos","events_url":"https://api.github.com/users/msafi/events{/privacy}","received_events_url":"https://api.github.com/users/msafi/received_events","type":"User","site_admin":false},"created_at":"2017-08-31T18:15:58Z","updated_at":"2017-08-31T18:15:58Z","author_association":"NONE","body":"@roblourens If I set \"All Exceptions\", I get a bunch of irrelevant breakpoints for internal VS Code that gets caught and handled. It's too much noise. Not really usable.\r\n\r\nI feel the current design harms the extension authoring experience. For example, if you don't show the dialog or some how allow the error to propagate up so that the debugger will consider it uncaught, that will make things better.\r\n\r\nCan't you rethrow the error after showing the dialog so that the debugger will consider it uncaught or maybe change the behavior of VS Code so that when it's an Extension Development Host and the error is generated by the extension being hosted, it doesn't catch the error?"}}
{"actor":{"display_login":"msafi"}}