DevTools/Features/SourceMap: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 27: Line 27:
A user can take .js source files and compress them with the Closure Compiler. Errors and log messages in the Web Console will refer to the original .js files.
A user can take .js source files and compress them with the Closure Compiler. Errors and log messages in the Web Console will refer to the original .js files.


Case 2: CoffeeScript
Case 2: Languages which compile to JavaScript


You can start with a .coffee file. Any log output or errors generated will refer back to the original .coffee file, rather than the generated .js file.
You can start with an original file which contains any language that compiles to JS (for example, CoffeeScript). Any logged output or uncaught errors will refer back to the original file, rather than the generated JS file which is actually being executed.
|Feature requirements=* When a sourcemap is available, error messages in console will link to the original source, not the generated JS
|Feature requirements=* When a sourcemap is available, error messages in console will link to the original source, not the generated JS
* Likewise, console log output will link back to the original source
* Likewise, console log output will link back to the original source
Confirmed users
125

edits