{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/39033","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/39033/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/39033/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/39033/events","html_url":"https://github.com/Microsoft/vscode/issues/39033","id":276367857,"number":39033,"title":"NODE Cluster Debugger(Inspector) problem","user":{"login":"gustavomassa","id":16235598,"avatar_url":"https://avatars2.githubusercontent.com/u/16235598?v=4","gravatar_id":"","url":"https://api.github.com/users/gustavomassa","html_url":"https://github.com/gustavomassa","followers_url":"https://api.github.com/users/gustavomassa/followers","following_url":"https://api.github.com/users/gustavomassa/following{/other_user}","gists_url":"https://api.github.com/users/gustavomassa/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavomassa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavomassa/subscriptions","organizations_url":"https://api.github.com/users/gustavomassa/orgs","repos_url":"https://api.github.com/users/gustavomassa/repos","events_url":"https://api.github.com/users/gustavomassa/events{/privacy}","received_events_url":"https://api.github.com/users/gustavomassa/received_events","type":"User","site_admin":false},"labels":[{"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":"open","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":1,"created_at":"2017-11-23T13:05:57Z","updated_at":"2017-12-08T18:44:54Z","closed_at":null,"author_association":"NONE","body":"- VSCode Version: 1.18.1\r\n- OS Version: Windows 10 64bits\r\n- Node Version: 8.6.0\r\n\r\nWhen debugguing nodeJS applications in cluster mode, the debugger starts correctly but it does not print any console messages but the main/initialization ones. The debugger(Inspector) does not catch any break points.\r\nIt happens 50% of time, sometimes it works sometimes it doesn't.\r\nIt has started after the update that added the \"outputCapture: std\" option, when using std it duplicates all the console messages.\r\n\r\nMy launch.json:\r\n```\r\n{\r\n    \"version\": \"0.2.0\",\r\n    \"configurations\": [\r\n        {\r\n            \"type\": \"node\",\r\n            \"request\": \"launch\",\r\n            \"protocol\": \"inspector\",\r\n            \"outputCapture\": \"console\",\r\n            \"name\": \"Launch WBA\",\r\n            \"useWSL\": false,\r\n            \"env\": {\r\n                \"NODE_ENV\": \"development\"\r\n            },\r\n            \"cwd\": \"${workspaceRoot}/server\",\r\n            \"outFiles\": [\r\n                \"${workspaceRoot}/server/dist/**/*.js.map\",\r\n                \"${workspaceRoot}/server/dist/**/*.js\"\r\n            ],\r\n            \"program\": \"${workspaceRoot}/server/src/Main.ts\",\r\n            \"runtimeExecutable\": null,\r\n            \"runtimeArgs\": [\r\n                \"--nolazy\",\r\n                \"--no-warnings\",\r\n                \"--expose-gc\",\r\n                \"--inspect=9329\"\r\n            ],\r\n            \"stopOnEntry\": false,\r\n            \"sourceMaps\": true,\r\n            \"address\": \"localhost\",\r\n            \"port\": 9329\r\n        },\r\n        {\r\n            \"name\": \"Launch WBA Chrome\",\r\n            \"type\": \"chrome\",\r\n            \"request\": \"launch\",\r\n            \"url\": \"https://localhost:3000\",\r\n            \"webRoot\": \"${workspaceRoot}/template\",\r\n            \"sourceMaps\": true\r\n        },\r\n        {\r\n            \"type\": \"node\",\r\n            \"request\": \"attach\",\r\n            \"protocol\": \"inspector\",\r\n            \"name\": \"Attach to worker 1\",\r\n            \"stopOnEntry\": false,\r\n            \"address\": \"localhost\",\r\n            \"port\": 9330,\r\n            \"timeout\": 30000\r\n        },\r\n        {\r\n            \"type\": \"node\",\r\n            \"request\": \"attach\",\r\n            \"protocol\": \"inspector\",\r\n            \"name\": \"Attach to worker 2\",\r\n            \"stopOnEntry\": false,\r\n            \"address\": \"localhost\",\r\n            \"port\": 9331,\r\n            \"timeout\": 30000\r\n        },\r\n        {\r\n            \"type\": \"node\",\r\n            \"request\": \"attach\",\r\n            \"protocol\": \"inspector\",\r\n            \"name\": \"Attach to worker 3\",\r\n            \"stopOnEntry\": false,\r\n            \"address\": \"localhost\",\r\n            \"port\": 9332,\r\n            \"timeout\": 30000\r\n        },\r\n        {\r\n            \"type\": \"node\",\r\n            \"request\": \"attach\",\r\n            \"protocol\": \"inspector\",\r\n            \"name\": \"Attach to worker 4\",\r\n            \"stopOnEntry\": false,\r\n            \"address\": \"localhost\",\r\n            \"port\": 9333,\r\n            \"timeout\": 30000\r\n        }\r\n    ],\r\n    \"compounds\": [\r\n        {\r\n            \"name\": \"Debug Cluster\",\r\n            \"configurations\": [\r\n                \"Launch WBA\",\r\n                \"Attach to worker 1\",\r\n                \"Attach to worker 2\",\r\n                \"Launch WBA Chrome\"\r\n            ]\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\nCluster and worker initialization:\r\n```\r\nnode --nolazy --no-warnings --expose-gc --inspect=9329 dist\\Main.js \r\nDebugger listening on ws://127.0.0.1:9329/876fe2a6-67c9-4786-81c7-f9f3cf7e7756\r\nWBA Cluster 6520 is running, available CPUS: 4 - Args [\"--nolazy\",\"--no-warnings\",\"--expose-gc\",\"--inspect=9329\"]\r\nWorker Id: 2 - PID: 7936 - Args [\"--nolazy\",\"--no-warnings\",\"--expose-gc\",\"--inspect=9329\",\"--inspect-port=9331\"]\r\nWorker Id: 1 - Name: fileIntegrationWorker - PID: 12864 - Args [\"--nolazy\",\"--no-warnings\",\"--expose-gc\",\"--inspect=9329\",\"--inspect-port=9330\"]\r\n```\r\n\r\ntsconfig.json:\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"noUnusedLocals\": false,\r\n    \"noUnusedParameters\": false,\r\n    \"experimentalDecorators\": true,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"target\": \"ES6\",\r\n    \"module\": \"commonjs\",\r\n    \"outDir\": \"dist\",\r\n    \"rootDir\": \"src\",\r\n    \"sourceMap\": true,\r\n    \"typeRoots\": [\r\n      \"node_modules/@types\"\r\n    ],\r\n    \"types\": [\r\n      \"node\"\r\n    ]\r\n  },\r\n  \"include\": [\r\n    \"src/**/*.ts\"\r\n  ],\r\n  \"exclude\": [\r\n    \"node_modules\",\r\n    \"dist\"\r\n  ]\r\n}\r\n```\r\n\r\nPlease let me know if you need more info.\r\n\r\nThanks!\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/350340490","html_url":"https://github.com/Microsoft/vscode/issues/39033#issuecomment-350340490","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/39033","id":350340490,"user":{"login":"gustavomassa","id":16235598,"avatar_url":"https://avatars2.githubusercontent.com/u/16235598?v=4","gravatar_id":"","url":"https://api.github.com/users/gustavomassa","html_url":"https://github.com/gustavomassa","followers_url":"https://api.github.com/users/gustavomassa/followers","following_url":"https://api.github.com/users/gustavomassa/following{/other_user}","gists_url":"https://api.github.com/users/gustavomassa/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavomassa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavomassa/subscriptions","organizations_url":"https://api.github.com/users/gustavomassa/orgs","repos_url":"https://api.github.com/users/gustavomassa/repos","events_url":"https://api.github.com/users/gustavomassa/events{/privacy}","received_events_url":"https://api.github.com/users/gustavomassa/received_events","type":"User","site_admin":false},"created_at":"2017-12-08T18:44:54Z","updated_at":"2017-12-08T18:44:54Z","author_association":"NONE","body":"Hi Rob,\r\n\r\nThe log is attached. One thing that I observed is that sometimes it stops on the beginning of the class, even though there is not breakpoint there and \"stopOnEntry\" is false.\r\n\r\n[vscode-node-debug2.txt](https://github.com/Microsoft/vscode/files/1543531/vscode-node-debug2.txt)\r\n"}}
{"actor":{"display_login":"gustavomassa"}}