{"action":"created","issue":{"url":"https://api.github.com/repos/node-inspector/node-inspector/issues/832","repository_url":"https://api.github.com/repos/node-inspector/node-inspector","labels_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/832/labels{/name}","comments_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/832/comments","events_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/832/events","html_url":"https://github.com/node-inspector/node-inspector/issues/832","id":137058035,"number":832,"title":"node-inspector and babel-register","user":{"login":"mdotasia","id":1482402,"avatar_url":"https://avatars.githubusercontent.com/u/1482402?v=3","gravatar_id":"","url":"https://api.github.com/users/mdotasia","html_url":"https://github.com/mdotasia","followers_url":"https://api.github.com/users/mdotasia/followers","following_url":"https://api.github.com/users/mdotasia/following{/other_user}","gists_url":"https://api.github.com/users/mdotasia/gists{/gist_id}","starred_url":"https://api.github.com/users/mdotasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdotasia/subscriptions","organizations_url":"https://api.github.com/users/mdotasia/orgs","repos_url":"https://api.github.com/users/mdotasia/repos","events_url":"https://api.github.com/users/mdotasia/events{/privacy}","received_events_url":"https://api.github.com/users/mdotasia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-28T14:24:05Z","updated_at":"2016-03-11T03:50:17Z","closed_at":null,"body":"I am using this setup https://babeljs.io/docs/setup/#mocha to run mocha tests written in ES6. I would like to debug a mocha test with node-inspector. Running ES6 mocha tests works fine with this setup.\r\n\r\nIn order to debug, I run `node-inspector` in one terminal and\r\n\r\n```\r\nmocha --compilers js:babel-register --debug-brk\r\n```\r\n in another. I can debug in principle, i.e. on any ES5 code I can set break points. Any breakpoints in my ES6 tests get ignored. It looks like node-inspector does not pick up any sourcemaps.\r\n\r\nNow babel-register does create sourcemaps by default, only I have no idea whether or not it saves compiles files to disk and whether node-inspector has a chance to get its hand on the sourcemaps.\r\n\r\nHas anyone managed to debug code in node-inspector that has been processed with babel-register?"},"comment":{"url":"https://api.github.com/repos/node-inspector/node-inspector/issues/comments/195166117","html_url":"https://github.com/node-inspector/node-inspector/issues/832#issuecomment-195166117","issue_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/832","id":195166117,"user":{"login":"itaylor","id":38120,"avatar_url":"https://avatars.githubusercontent.com/u/38120?v=3","gravatar_id":"","url":"https://api.github.com/users/itaylor","html_url":"https://github.com/itaylor","followers_url":"https://api.github.com/users/itaylor/followers","following_url":"https://api.github.com/users/itaylor/following{/other_user}","gists_url":"https://api.github.com/users/itaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/itaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itaylor/subscriptions","organizations_url":"https://api.github.com/users/itaylor/orgs","repos_url":"https://api.github.com/users/itaylor/repos","events_url":"https://api.github.com/users/itaylor/events{/privacy}","received_events_url":"https://api.github.com/users/itaylor/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T03:50:17Z","updated_at":"2016-03-11T03:50:17Z","body":"I'm running mocha tests using babel-register on Mac and am seeing the same issues.   I don't hit my breakpoints in node-inspector for any files that are have been transpiled by babel.  Node 5.8.0, babel-register 6.7.2."}}