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.


If you like my content, please consider buying me a coffee. Buy me a coffeeBuy me a coffee Thank you for your support!

Leave a Reply