{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/2145","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/2145/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/2145/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/2145/events","html_url":"https://github.com/webpack/webpack/issues/2145","id":138783177,"number":2145,"title":"Source Maps don't work on Chrome","user":{"login":"bolismauro","id":771999,"avatar_url":"https://avatars.githubusercontent.com/u/771999?v=3","gravatar_id":"","url":"https://api.github.com/users/bolismauro","html_url":"https://github.com/bolismauro","followers_url":"https://api.github.com/users/bolismauro/followers","following_url":"https://api.github.com/users/bolismauro/following{/other_user}","gists_url":"https://api.github.com/users/bolismauro/gists{/gist_id}","starred_url":"https://api.github.com/users/bolismauro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolismauro/subscriptions","organizations_url":"https://api.github.com/users/bolismauro/orgs","repos_url":"https://api.github.com/users/bolismauro/repos","events_url":"https://api.github.com/users/bolismauro/events{/privacy}","received_events_url":"https://api.github.com/users/bolismauro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":37,"created_at":"2016-03-06T11:09:23Z","updated_at":"2016-07-14T09:32:41Z","closed_at":null,"body":"Hello everyone,\r\nI just started to use webpack and I'm having serious issues in debugging my code.\r\nThe problem is that the Chrome debugger doesn't work properly.\r\nI'm not sure if this is a webpack issue, a Chrome issue or my fault.\r\n\r\nThis is my webpack file\r\n```\r\n\r\nvar webpack = require('webpack');\r\n\r\nmodule.exports = {\r\n  entry: [\r\n    './app',\r\n  ],\r\n  output: {\r\n    path: __dirname + '/assets',\r\n    publicPath: '/assets',\r\n    filename: 'app.js',\r\n  },\r\n  devServer: {\r\n    contentBase: __dirname + '/assets',\r\n    host: '0.0.0.0',\r\n    port: process.env.PORT,\r\n    historyApiFallback: true,\r\n    watchOptions: {\r\n      aggregateTimeout: 300,\r\n      poll: 1000,\r\n    }\r\n  },\r\n  cache: true,\r\n  devtool: 'inline-source-map',\r\n  plugins: [\r\n    new webpack.HotModuleReplacementPlugin(),\r\n    new webpack.DefinePlugin({\r\n      'process.env.NODE_ENV': '\"development\"',\r\n    }),\r\n  ],\r\n  module: {\r\n    preLoaders: [\r\n    ],\r\n    loaders: [\r\n      {\r\n        test: /\\.js$/,\r\n        include: [ __dirname ],\r\n        exclude: /node_modules/,\r\n        loader: 'babel-loader',\r\n      },\r\n    ],\r\n  },\r\n  node: {\r\n    fs: 'empty',\r\n  },\r\n};\r\n```\r\n\r\nBy changing the `devtool` option I get different behaviours:\r\n\r\n* eval: the debugger works correctly but the code is really hard to debug because I see the transpiled code\r\n\r\n* source-map: When I set a brekpoint in a certain line, chrome often moves that breakpoint in another line. When I use the step over functionality, chrome shows me the wrong line even though the line where I stopped the execution was correct  (usually the debugger moves the execution indicator where the function is declared)\r\n\r\n* hidden-source-map: same as eval\r\n* inline-source-map: same as source-map\r\n* eval-source-map:  The debugger adds the breakpoints on the correct line, but the execution never stops. This seems to be connected to #740\r\n\r\n* cheap-source-map: same as eval\r\n* cheap-module-source-map: same as source-map\r\n\r\nI've tried to search both Chrome and Webpack related issues, changing browser or anything else it comes in my mind without success.\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/232615399","html_url":"https://github.com/webpack/webpack/issues/2145#issuecomment-232615399","issue_url":"https://api.github.com/repos/webpack/webpack/issues/2145","id":232615399,"user":{"login":"AlexGalays","id":1375586,"avatar_url":"https://avatars.githubusercontent.com/u/1375586?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexGalays","html_url":"https://github.com/AlexGalays","followers_url":"https://api.github.com/users/AlexGalays/followers","following_url":"https://api.github.com/users/AlexGalays/following{/other_user}","gists_url":"https://api.github.com/users/AlexGalays/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexGalays/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexGalays/subscriptions","organizations_url":"https://api.github.com/users/AlexGalays/orgs","repos_url":"https://api.github.com/users/AlexGalays/repos","events_url":"https://api.github.com/users/AlexGalays/events{/privacy}","received_events_url":"https://api.github.com/users/AlexGalays/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T09:32:41Z","updated_at":"2016-07-14T09:32:41Z","body":"inline-source-map fixed it on OSX for me. This is a chrome issue though."}}
{"actor":{"display_login":"AlexGalays"}}