{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/936","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/936/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/936/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/936/events","html_url":"https://github.com/Microsoft/vscode/issues/936","id":119992567,"number":936,"title":"Source maps don't work when attaching to running code","user":{"login":"jamietre","id":573056,"avatar_url":"https://avatars.githubusercontent.com/u/573056?v=3","gravatar_id":"","url":"https://api.github.com/users/jamietre","html_url":"https://github.com/jamietre","followers_url":"https://api.github.com/users/jamietre/followers","following_url":"https://api.github.com/users/jamietre/following{/other_user}","gists_url":"https://api.github.com/users/jamietre/gists{/gist_id}","starred_url":"https://api.github.com/users/jamietre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamietre/subscriptions","organizations_url":"https://api.github.com/users/jamietre/orgs","repos_url":"https://api.github.com/users/jamietre/repos","events_url":"https://api.github.com/users/jamietre/events{/privacy}","received_events_url":"https://api.github.com/users/jamietre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-02T17:20:12Z","updated_at":"2015-12-02T17:20:12Z","closed_at":null,"body":"Using this config:\r\n\r\n    \"sourceMaps\": true,\r\n    \"outDir\": null\r\n\r\nAn application structure that looks like this:\r\n\r\n    test/\r\n        src/\r\n            some-test.js\r\n        dist/\r\n            some-test.js   \r\n\r\n`some-test.js` contains inlined source generated by Babel with \"inline\" option (as the documentation indicates vscode does not support separate map files, and indeed trying to use source maps with a seprate file just says \"can't find source map\"):\r\n\r\n    //#sourceMappingURL=data:application/json;base64,\r\n    eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlvYy5qcy    JdLCJuYW1lcyI6W10sIm1hcHBpbmdzI\r\n\r\n... etc\r\n\r\nStarting from command line:\r\n\r\n    mocha --debug-brk dist/some-test.js\r\n\r\nAttaching with vscode and `sourceMaps: true`, it displays the actual file `dist/some-test.js` which contains inlined source, and breaks on the wrong line too.\r\n\r\nAttaching from vscode and `sourceMaps: false`, it displays the same file (as expected) and breaks on the correct line.\r\n\r\nIs there any way to make source maps work when attaching to a running process? Is this a configuration problem, or due to vscode not knowing how to find files when not started from within vscode?\r\n\r\n    \r\n"}}