{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/18344","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/18344/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/18344/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/18344/events","html_url":"https://github.com/Microsoft/vscode/issues/18344","id":199691740,"number":18344,"title":"Sometime VS Code Debugger will Crash (PowerShell Extension) then odd things happen","user":{"login":"swinster","id":8142964,"avatar_url":"https://avatars.githubusercontent.com/u/8142964?v=3","gravatar_id":"","url":"https://api.github.com/users/swinster","html_url":"https://github.com/swinster","followers_url":"https://api.github.com/users/swinster/followers","following_url":"https://api.github.com/users/swinster/following{/other_user}","gists_url":"https://api.github.com/users/swinster/gists{/gist_id}","starred_url":"https://api.github.com/users/swinster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swinster/subscriptions","organizations_url":"https://api.github.com/users/swinster/orgs","repos_url":"https://api.github.com/users/swinster/repos","events_url":"https://api.github.com/users/swinster/events{/privacy}","received_events_url":"https://api.github.com/users/swinster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-09T23:27:16Z","updated_at":"2017-01-09T23:27:16Z","closed_at":null,"body":"- VSCode Version: Code 1.8.1 (ee428b0eead68bf0fb99ab5fdc4439be227b6281, 2016-12-19T14:49:23.350Z)\r\n- OS Version: Windows_NT ia32 10.0.14986\r\n- Extensions:\r\n\r\n|Extension|Author|Version|\r\n|---|---|---|\r\n|python|donjayamanne|0.5.5|\r\n|beautify|HookyQR|0.7.3|\r\n|rest-client|humao|0.11.4|\r\n|PowerShell|ms-vscode|0.8.0|\r\n\r\n---\r\n\r\nSteps to Reproduce:\r\nNot sure if this is with VS Code or the PowerShell Extension. \r\n\r\nApologies for the woolly title and no step to replicate, but this is odd to say the least. Sometime, the VS Code debugger will hang when debugging a  PS script. I can't restart the debugger, but eventually, after pressing the stop button several times it will stop. However, pressing play results in a blue scrolling time line above the debug pane, and when I click stop this time I retrieve an error saying the debugger has crashed. \r\n\r\nDebug will not start until I have exited and restart Vs-code, but things to not stop there.  I threw together a simple test of some functions in an attempt to replicate an odd behaviour I was seeing through a pipeline (running the through the VS PS Debugger), and even more odd behaviours were seen, such as the Process block of the second function in the pipeline running before the process block on the first function. In another script I was also seeing other pipeline functions fire (and of course fail) when simply stepping over  a command in the current function (for example, a New-Item command to create a directory, or a '&' call out to another process. Even shutting down and restarting VS Code seem to do nothing.\r\n\r\nEventually I rebooted, but pretty sure this too too didn't do much either, until I change so code in `For Each-Object` loop, then eventually VS Code started behaving. \r\n\r\nIt was almost as it VS Code hadn't cleared some kind of internal stack and kept reverted to old path, or some such when the debugger was run.\r\n\r\nNot sure if you can understand what I'm explaining, or if I can replicate, but this has been going on an off for a while. If there are file I can provide, let me know."}}
{"actor":{"display_login":"swinster"}}