Bower, brunch, sourcemaps and debugging

I have a bower/brunch project that looks like this:




All of the CoffeeScript code from myproject/app is compiled into a single app.js file in the public/javascripts directory. It has a corresponding sourcemap file that looks like this:


It's served from the http://localhost/, i.e. app.js has an url http://localhost/javascripts/app.js

Is there a way to use IDEA's debugger with this source code structure? I can patch the generated sourcemaps if required, but changing the project structure is not really feasible.

1 comment
Comment actions Permalink


try making the paths in your map either absolute or relative to your .map file, like:

app/" ....

and make sure to add the //# sourceMappingURL comment to your app.js file - does this help?


Please sign in to leave a comment.