{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1646","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1646/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1646/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1646/events","html_url":"https://github.com/webpack/webpack/issues/1646","id":117801377,"number":1646,"title":"Document a proper way to debug applications bundled by webpack","user":{"login":"adamziel","id":205419,"avatar_url":"https://avatars.githubusercontent.com/u/205419?v=3","gravatar_id":"","url":"https://api.github.com/users/adamziel","html_url":"https://github.com/adamziel","followers_url":"https://api.github.com/users/adamziel/followers","following_url":"https://api.github.com/users/adamziel/following{/other_user}","gists_url":"https://api.github.com/users/adamziel/gists{/gist_id}","starred_url":"https://api.github.com/users/adamziel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamziel/subscriptions","organizations_url":"https://api.github.com/users/adamziel/orgs","repos_url":"https://api.github.com/users/adamziel/repos","events_url":"https://api.github.com/users/adamziel/events{/privacy}","received_events_url":"https://api.github.com/users/adamziel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T12:12:39Z","updated_at":"2015-11-19T16:21:57Z","closed_at":null,"body":"As far as I understand, right now the recommended way to debug are source maps in this mode:  \r\n`eval - Each module is executed with eval and`  \r\nThere are a number of problems with using source maps in development:\r\n\r\n1. Only some stacktraces are mapped using a source maps. Other are looking like this: `at eval (eval at <anonymous>  http://localhost:8082/js/app.js:2004:2), <anonymous>:43:67)`. Also, tracebacks produced by `console.error`, `console.trace` etc are not mapped - and this is a big deal if you happen to use library that does it, e.g. almost any `Promise` library.\r\n1. It tends to be slow in big bundles\r\n\r\nI am aware of [sourcemapped-stacktrace](https://github.com/novocaine/sourcemapped-stacktrace) - this is both slow, and error-prone.\r\n\r\nOne way of approaching it would be (optionally) eliminate source-maps from the process altogether and  add an option for webpack to behave similar to `require.js`: somehow tell it to split code at every single module.  \r\nSince there would be no more single giant source-mapped bundle, and the code would live in a module with name same as the source file, and with the same line structure (e.g. babel has a `--retail-lines` option), chrome would consistently construct actually useful tracebacks.\r\n\r\nHonestly guys I hope I am just missing something and there is an actual solution that I just didn't find :-)"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/158107203","html_url":"https://github.com/webpack/webpack/issues/1646#issuecomment-158107203","issue_url":"https://api.github.com/repos/webpack/webpack/issues/1646","id":158107203,"user":{"login":"adamziel","id":205419,"avatar_url":"https://avatars.githubusercontent.com/u/205419?v=3","gravatar_id":"","url":"https://api.github.com/users/adamziel","html_url":"https://github.com/adamziel","followers_url":"https://api.github.com/users/adamziel/followers","following_url":"https://api.github.com/users/adamziel/following{/other_user}","gists_url":"https://api.github.com/users/adamziel/gists{/gist_id}","starred_url":"https://api.github.com/users/adamziel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamziel/subscriptions","organizations_url":"https://api.github.com/users/adamziel/orgs","repos_url":"https://api.github.com/users/adamziel/repos","events_url":"https://api.github.com/users/adamziel/events{/privacy}","received_events_url":"https://api.github.com/users/adamziel/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T16:21:56Z","updated_at":"2015-11-19T16:21:56Z","body":"Similar issues:\r\nhttps://github.com/webpack/webpack/issues/740\r\nhttps://github.com/webpack/webpack/issues/1360\r\n\r\nRelated chrome issue:\r\nhttps://code.google.com/p/chromium/issues/detail?id=376409"}}