How to debug javascript code in WordPress?

You should edit the file: wp-includes/version.php to change $wp_version = ‘3.9.3’ to $wp_version = ‘3.9.3-src’. After doing that, a  wordpress site will load development version of javascript files instead of concise version(with .min.js suffix such as  juery.min.js) so you can debug  js source files more conveniently.

 

Leave a Reply