{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/4906","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/4906/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/4906/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/4906/events","html_url":"https://github.com/nodejs/node/issues/4906","id":129148686,"number":4906,"title":"node 4.2.6: util.inspect() will terminate the program when there is a breakpoint ","user":{"login":"Corey600","id":3704789,"avatar_url":"https://avatars.githubusercontent.com/u/3704789?v=3","gravatar_id":"","url":"https://api.github.com/users/Corey600","html_url":"https://github.com/Corey600","followers_url":"https://api.github.com/users/Corey600/followers","following_url":"https://api.github.com/users/Corey600/following{/other_user}","gists_url":"https://api.github.com/users/Corey600/gists{/gist_id}","starred_url":"https://api.github.com/users/Corey600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Corey600/subscriptions","organizations_url":"https://api.github.com/users/Corey600/orgs","repos_url":"https://api.github.com/users/Corey600/repos","events_url":"https://api.github.com/users/Corey600/events{/privacy}","received_events_url":"https://api.github.com/users/Corey600/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/debugger","name":"debugger","color":"bfd4f2"},{"url":"https://api.github.com/repos/nodejs/node/labels/util","name":"util","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-27T13:47:21Z","updated_at":"2016-02-03T11:24:25Z","closed_at":null,"body":"```\r\nvar util = require('util');\r\nconsole.log(util.inspect({ff:9}));\r\nconsole.log('1');\r\ndebugger;\r\nconsole.log('2');\r\ndebugger;\r\nconsole.log('3');\r\ndebugger;\r\n```\r\n\r\ncode is like above.\r\n\r\nwhen i execute the command : node debug demo.js\r\nresult like this:\r\n```\r\nE:\\workspace\\web\\node\\koa-auth>node debug demo.js\r\n< Debugger listening on port 5858\r\ndebug> . ok\r\nbreak in E:\\workspace\\web\\node\\koa-auth\\demo.js:1\r\n> 1 var util = require('util');\r\n  2 console.log(util.inspect({ff:9}));\r\n  3 console.log('1');\r\ndebug> c\r\n< { ff: 9 }\r\n< 1\r\nprogram terminated\r\nprogram terminated\r\nprogram terminated\r\nprogram terminated\r\nprogram terminated\r\nprogram terminated\r\nprogram terminated\r\nprogram terminated\r\nprogram terminated\r\ndebug> . failed, please retry\r\n\r\nE:\\workspace\\web\\node\\koa-auth>\r\n```\r\n\r\nwhen i program without debug, it run well.\r\nbut it can not run with debug.\r\n\r\nmy node version is 4.2.6\r\nmy system is windows 8.1\r\n\r\nplease solve this problem. thx!\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/179176415","html_url":"https://github.com/nodejs/node/issues/4906#issuecomment-179176415","issue_url":"https://api.github.com/repos/nodejs/node/issues/4906","id":179176415,"user":{"login":"vaunus","id":2065098,"avatar_url":"https://avatars.githubusercontent.com/u/2065098?v=3","gravatar_id":"","url":"https://api.github.com/users/vaunus","html_url":"https://github.com/vaunus","followers_url":"https://api.github.com/users/vaunus/followers","following_url":"https://api.github.com/users/vaunus/following{/other_user}","gists_url":"https://api.github.com/users/vaunus/gists{/gist_id}","starred_url":"https://api.github.com/users/vaunus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaunus/subscriptions","organizations_url":"https://api.github.com/users/vaunus/orgs","repos_url":"https://api.github.com/users/vaunus/repos","events_url":"https://api.github.com/users/vaunus/events{/privacy}","received_events_url":"https://api.github.com/users/vaunus/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T11:24:25Z","updated_at":"2016-02-03T11:24:25Z","body":"I am experiencing the same issue here where the debugger gets stuck on any line with `util.inspect()` on it.\r\n\r\nIn a very simple example with app.js containing the following it works as you would expect:\r\n\r\n```\r\nvar util = require('util');\r\nvar f = function () {\r\n    //breakpoint #1 below\r\n    var abc = '123';\r\n    console.log(util.inspect(abc));\r\n    //breakpoint #2 below\r\n    var def = '456';\r\n};\r\n\r\nf();\r\n```\r\n\r\nHowever in a more complex app it seems not to and the debugger and app hang at any line containing this. I have tested adding a simple `console.log(util.inspect({abc: '123'}))` lines in various places throughout my project and it consistently causes this problem. \r\n\r\nVerified to still be an issue in the latest 5.5.1 nightly and 6.0.0 nightlies from the 27th Jan 2016.\r\n\r\n"}}