课程: Learning JavaScript Debugging

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Source maps to debug minified files

Source maps to debug minified files

- [Instructor] In this video we're going to look at source maps, which are tool you can use to map the minified production ready versions of JavaScript files, to their corresponding, more readable development versions. This is a feature that is likely enabled out of the box in your debugger of choice, but just to make sure, we're going to look at the settings here in Chrome. So here in the contextual menu we're gonna open up the settings. If I scroll down a little bit, here under sources. Enable JavaScript source maps is checked. That is what I need. So depending on the browser that you're using, and the particular settings that you have in that browser, this example might need a little bit of tweaking before it's ready to use. What we're going to look at here is the source map that's associated with jQuery itself. It used to be that the online version of jQuery had a source map built into it. They're not doing that anymore. I guess people were getting a little bit confused by it. So,…

内容