{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/5645","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/5645/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/5645/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/5645/events","html_url":"https://github.com/Microsoft/vscode/issues/5645","id":150305742,"number":5645,"title":"Slow call stack response for TS repository","user":{"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},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/debug","name":"debug","color":"c7def8"}],"state":"open","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},"milestone":null,"comments":6,"created_at":"2016-04-22T08:31:52Z","updated_at":"2016-04-22T20:54:06Z","closed_at":null,"body":"Steps to Reproduce:\r\n\r\n1. git clone https://github.com/Microsoft/TypeScript.git\r\n2. npm install, npm install jake\r\n3. jake local\r\n4. set breakpoint in checker.ts:47\r\n5. Use the following `launch.json`\r\n6. Launch and notice getting call stack is slower than node inspector\r\n7. I originally specualted the large Locals are slowing us down, but they are loaded lazily and still the callStack takes a long time to respond. Not sure if we are doing something special on the debug adapter side for the call stack request\r\n\r\n```json\r\n{\r\n\t\"version\": \"0.2.0\",\r\n\t\"configurations\": [\r\n\t\t{\r\n\t\t\t\"name\": \"Launch\",\r\n\t\t\t\"type\": \"node\",\r\n\t\t\t\"request\": \"launch\",\r\n\t\t\t\"program\": \"${workspaceRoot}/src/compiler/tsc.ts\",\r\n\t\t\t\"stopOnEntry\": false,\r\n\t\t\t\"args\": [\"PATH TO ANY TS FILE\"],\r\n\t\t\t\"cwd\": \"${workspaceRoot}\",\r\n\t\t\t\"preLaunchTask\": null,\r\n\t\t\t\"runtimeExecutable\": null,\r\n\t\t\t\"runtimeArgs\": [\r\n\t\t\t\t\"--nolazy\"\r\n\t\t\t],\r\n\t\t\t\"env\": {\r\n\t\t\t\t\"NODE_ENV\": \"development\"\r\n\t\t\t},\r\n\t\t\t\"externalConsole\": false,\r\n\t\t\t\"sourceMaps\": true,\r\n\t\t\t\"outDir\": \"${workspaceRoot}/built/local\"\r\n\t\t}\r\n\t]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/213585334","html_url":"https://github.com/Microsoft/vscode/issues/5645#issuecomment-213585334","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/5645","id":213585334,"user":{"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},"created_at":"2016-04-22T20:54:06Z","updated_at":"2016-04-22T20:54:06Z","body":"Moved comment from https://github.com/Microsoft/vscode/issues/4951 by @joewood:\r\n\r\nHi @weinand, I did a bit of investigation.\r\n\r\nI tried node-inspector and didn't see the issue. But, I did see the problem when I added my data structure to the watch window. Background here is that this module that I'm debugging has a large data structure loaded into memory. If I add this structure explicitly to node-inspector I see similar timeouts. \r\n\r\nHowever, in VSCode I see the problem consistently, even with an empty watch window.  So I assume the issue is related to what VSCode is watching by default (locals and context scope etc..) and what it's transferring each time I step through the debugger.\r\n\r\nWith that in mind I did a quick repro:\r\n```javascript\r\nconst faker = require(\"faker\");\r\n\r\nlet data = {};\r\n\r\nconsole.log(\"Running\");\r\n\r\nfor(let n=0; n<100000; n++) {\r\n    data[\"1\" +n] = faker.name.firstName();\r\n}\r\n"}}