{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/5668","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/5668/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/5668/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/5668/events","html_url":"https://github.com/Microsoft/vscode/issues/5668","id":150450628,"number":5668,"title":"Debug Console output not printing output at correct interval","user":{"login":"vsccarl","id":12900364,"avatar_url":"https://avatars.githubusercontent.com/u/12900364?v=3","gravatar_id":"","url":"https://api.github.com/users/vsccarl","html_url":"https://github.com/vsccarl","followers_url":"https://api.github.com/users/vsccarl/followers","following_url":"https://api.github.com/users/vsccarl/following{/other_user}","gists_url":"https://api.github.com/users/vsccarl/gists{/gist_id}","starred_url":"https://api.github.com/users/vsccarl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsccarl/subscriptions","organizations_url":"https://api.github.com/users/vsccarl/orgs","repos_url":"https://api.github.com/users/vsccarl/repos","events_url":"https://api.github.com/users/vsccarl/events{/privacy}","received_events_url":"https://api.github.com/users/vsccarl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/debug","name":"debug","color":"c7def8"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/v-test","name":"v-test","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"isidorn","id":1926584,"avatar_url":"https://avatars.githubusercontent.com/u/1926584?v=3","gravatar_id":"","url":"https://api.github.com/users/isidorn","html_url":"https://github.com/isidorn","followers_url":"https://api.github.com/users/isidorn/followers","following_url":"https://api.github.com/users/isidorn/following{/other_user}","gists_url":"https://api.github.com/users/isidorn/gists{/gist_id}","starred_url":"https://api.github.com/users/isidorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isidorn/subscriptions","organizations_url":"https://api.github.com/users/isidorn/orgs","repos_url":"https://api.github.com/users/isidorn/repos","events_url":"https://api.github.com/users/isidorn/events{/privacy}","received_events_url":"https://api.github.com/users/isidorn/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-04-22T19:17:15Z","updated_at":"2016-04-23T19:30:33Z","closed_at":null,"body":"- VSCode Version: 1.0.1-alpha\r\n- OS Version: Windows 10\r\n\r\nSteps to Reproduce:\r\n\r\nI was testing in Powershell but I was able to reproduce for Javascript.\r\n1. Add the below code and debug with the Powershell extension\r\n2. Observe the speed of the output numbers.\r\n\r\nWith Start-Sleep set at 100ms output prints 6 lines per refresh instead of printing one line every 100ms. Set at 200ms, 3 lines are printed per refresh, etc.\r\n\r\n```powershell\r\nfunction Write-Item($itemCount) {\r\n    $i = 1\r\n\r\n    while ($i -le $itemCount) {\r\n        $str = \"Output $i\"\r\n        Write-Output $str\r\n\r\n        # In the gutter on the left, right click and select \"Add Conditional Breakpoint\"\r\n        # on the next line. Use the condition: $i -eq 25\r\n        $i = $i + 1\r\n\r\n        # Slow down execution a bit so user can test the \"Pause debugger\" feature.\r\n        Start-Sleep -Milliseconds 100\r\n    }\r\n}\r\n\r\n# Do-Work will be underlined in green if you haven't disable script analysis.\r\n# Hover over the function name below to see the PSScriptAnalyzer warning that \"Do-Work\"\r\n# doesn't use an approved verb.\r\nfunction Do-Work($workCount) {\r\n    Write-Output \"Doing work...\"\r\n    Write-Item $workcount\r\n    Write-Host \"Done!\"\r\n}\r\n\r\nDo-Work 50\r\n\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/213815433","html_url":"https://github.com/Microsoft/vscode/issues/5668#issuecomment-213815433","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/5668","id":213815433,"user":{"login":"dbaeumer","id":1931590,"avatar_url":"https://avatars.githubusercontent.com/u/1931590?v=3","gravatar_id":"","url":"https://api.github.com/users/dbaeumer","html_url":"https://github.com/dbaeumer","followers_url":"https://api.github.com/users/dbaeumer/followers","following_url":"https://api.github.com/users/dbaeumer/following{/other_user}","gists_url":"https://api.github.com/users/dbaeumer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaeumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaeumer/subscriptions","organizations_url":"https://api.github.com/users/dbaeumer/orgs","repos_url":"https://api.github.com/users/dbaeumer/repos","events_url":"https://api.github.com/users/dbaeumer/events{/privacy}","received_events_url":"https://api.github.com/users/dbaeumer/received_events","type":"User","site_admin":false},"created_at":"2016-04-23T19:30:33Z","updated_at":"2016-04-23T19:30:33Z","body":"@isidorn I don't know if this is us or powershell. Starting with you."}}