{"action":"created","issue":{"url":"https://api.github.com/repos/iojs/io.js/issues/1347","labels_url":"https://api.github.com/repos/iojs/io.js/issues/1347/labels{/name}","comments_url":"https://api.github.com/repos/iojs/io.js/issues/1347/comments","events_url":"https://api.github.com/repos/iojs/io.js/issues/1347/events","html_url":"https://github.com/iojs/io.js/issues/1347","id":66438107,"number":1347,"title":"Debugger won't connect to process via URI","user":{"login":"Olegas","id":389390,"avatar_url":"https://avatars.githubusercontent.com/u/389390?v=3","gravatar_id":"","url":"https://api.github.com/users/Olegas","html_url":"https://github.com/Olegas","followers_url":"https://api.github.com/users/Olegas/followers","following_url":"https://api.github.com/users/Olegas/following{/other_user}","gists_url":"https://api.github.com/users/Olegas/gists{/gist_id}","starred_url":"https://api.github.com/users/Olegas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Olegas/subscriptions","organizations_url":"https://api.github.com/users/Olegas/orgs","repos_url":"https://api.github.com/users/Olegas/repos","events_url":"https://api.github.com/users/Olegas/events{/privacy}","received_events_url":"https://api.github.com/users/Olegas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/iojs/io.js/labels/debugger","name":"debugger","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-05T13:27:06Z","updated_at":"2015-04-05T21:51:00Z","closed_at":null,"body":"```\r\n[root@*** ~]# iojs debug 127.0.0.1:6042\r\n< Debugger listening on port 5858\r\nconnecting to port 6042... ok\r\n< module.js:318\r\n<     throw err;\r\n<           ^\r\n< Error: Cannot find module '/root/127.0.0.1:6042'\r\n<     at Function.Module._resolveFilename (module.js:316:15)\r\n<     at Function.Module._load (module.js:258:25)\r\n<     at Module.runMain [as _onTimeout] (module.js:451:10)\r\n<     at Timer.listOnTimeout (timers.js:88:15)\r\n```"},"comment":{"url":"https://api.github.com/repos/iojs/io.js/issues/comments/89860441","html_url":"https://github.com/iojs/io.js/issues/1347#issuecomment-89860441","issue_url":"https://api.github.com/repos/iojs/io.js/issues/1347","id":89860441,"user":{"login":"Olegas","id":389390,"avatar_url":"https://avatars.githubusercontent.com/u/389390?v=3","gravatar_id":"","url":"https://api.github.com/users/Olegas","html_url":"https://github.com/Olegas","followers_url":"https://api.github.com/users/Olegas/followers","following_url":"https://api.github.com/users/Olegas/following{/other_user}","gists_url":"https://api.github.com/users/Olegas/gists{/gist_id}","starred_url":"https://api.github.com/users/Olegas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Olegas/subscriptions","organizations_url":"https://api.github.com/users/Olegas/orgs","repos_url":"https://api.github.com/users/Olegas/repos","events_url":"https://api.github.com/users/Olegas/events{/privacy}","received_events_url":"https://api.github.com/users/Olegas/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T21:51:00Z","updated_at":"2015-04-05T21:51:00Z","body":"There are another error related to attaching a debugger\r\n\r\n * Create a dummy app (debug-test.js)\r\n```javascript\r\nconsole.log(process.pid);\r\nsetInterval(function() {\r\n}, 1000);\r\n```\r\n * Start it and set debug port\r\n```\r\niojs --debug-port=4455 debug-test.js\r\n```\r\nIt will display it's PID\r\n\r\n * Start debugger\r\n```\r\nkill -USR1 PID\r\n```\r\n\r\n * Message is displayed in a app's stdout\r\n```\r\nStarting debugger agent.\r\nDebugger listening on port 4455\r\n```\r\n\r\n * Connect debugger\r\n```\r\nnode debug -p PID\r\n```\r\n\r\n * Debugger is attached\r\n```\r\n< Debugger listening on port 5858\r\nconnecting to port 5858... ok\r\n< 3775\r\ndebug>\r\n```\r\n\r\n * Try `version` command - everything locks"}}