{"action":"created","issue":{"url":"https://api.github.com/repos/iojs/io.js/issues/720","labels_url":"https://api.github.com/repos/iojs/io.js/issues/720/labels{/name}","comments_url":"https://api.github.com/repos/iojs/io.js/issues/720/comments","events_url":"https://api.github.com/repos/iojs/io.js/issues/720/events","html_url":"https://github.com/iojs/io.js/issues/720","id":56606836,"number":720,"title":"Add NODE_DEBUG support for child_process","user":{"login":"remixz","id":1459603,"avatar_url":"https://avatars.githubusercontent.com/u/1459603?v=3","gravatar_id":"","url":"https://api.github.com/users/remixz","html_url":"https://github.com/remixz","followers_url":"https://api.github.com/users/remixz/followers","following_url":"https://api.github.com/users/remixz/following{/other_user}","gists_url":"https://api.github.com/users/remixz/gists{/gist_id}","starred_url":"https://api.github.com/users/remixz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remixz/subscriptions","organizations_url":"https://api.github.com/users/remixz/orgs","repos_url":"https://api.github.com/users/remixz/repos","events_url":"https://api.github.com/users/remixz/events{/privacy}","received_events_url":"https://api.github.com/users/remixz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-04T23:53:49Z","updated_at":"2015-02-05T00:16:12Z","closed_at":null,"body":"It would be super useful to have `NODE_DEBUG` support for `child_process`. The use-case that I'd have for this would be to track down when a command can't be found, since right now, all that's returned is `Error: spawn ENOENT`. It'd be nice to have what command and arguments it was trying to run.\r\n\r\nExample:\r\n\r\n```js\r\nvar spawn = require('child_process').spawn\r\n\r\nvar child = spawn('fdjslkdf')\r\n\r\nchild.on('error', function (err) {\r\n  throw err\r\n})\r\n```\r\n\r\nCurrent output:\r\n\r\n```\r\ntest.js:6\r\n  throw err;\r\n        ^\r\nError: spawn ENOENT\r\n    at errnoException (child_process.js:1011:11)\r\n    at Process.ChildProcess._handle.onexit (child_process.js:802:34)\r\n```\r\n\r\nIdea of output:\r\n\r\n```\r\nchild_process: spawned `fdjslkdf` with arguments []\r\ntest.js:6\r\n  throw err;\r\n        ^\r\nError: spawn ENOENT\r\n    at errnoException (child_process.js:1011:11)\r\n    at Process.ChildProcess._handle.onexit (child_process.js:802:34)\r\n```"},"comment":{"url":"https://api.github.com/repos/iojs/io.js/issues/comments/72969539","html_url":"https://github.com/iojs/io.js/issues/720#issuecomment-72969539","issue_url":"https://api.github.com/repos/iojs/io.js/issues/720","id":72969539,"user":{"login":"bmeck","id":234659,"avatar_url":"https://avatars.githubusercontent.com/u/234659?v=3","gravatar_id":"","url":"https://api.github.com/users/bmeck","html_url":"https://github.com/bmeck","followers_url":"https://api.github.com/users/bmeck/followers","following_url":"https://api.github.com/users/bmeck/following{/other_user}","gists_url":"https://api.github.com/users/bmeck/gists{/gist_id}","starred_url":"https://api.github.com/users/bmeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmeck/subscriptions","organizations_url":"https://api.github.com/users/bmeck/orgs","repos_url":"https://api.github.com/users/bmeck/repos","events_url":"https://api.github.com/users/bmeck/events{/privacy}","received_events_url":"https://api.github.com/users/bmeck/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T00:16:12Z","updated_at":"2015-02-05T00:16:12Z","body":"it is only in errors, not for when things get spawned (which is useful anyway)"}}