Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

A lot of WP JS is minified and therefore it's hard to be analyzed in the Console. Is there any way to have all scripts uncompressed?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

Yes there is, from Debugging in WordPress codex, you need to define SCRIPT_DEBUG in wp-config.php to force WP to load the dev versions of the scripts:

define('SCRIPT_DEBUG', true);
share|improve this answer
    
but this works only, if the script is in readable form inside the plugin or theme. If is not, then use the button on Webinspector in Chrome and create with one click a readable form. –  bueltge Jan 27 '13 at 19:53
    
Keep in mind that while core WordPress includes these dev versions of scripts, not all plugins or themes do. –  Stephen Jan 27 '13 at 20:09
    
Thanks! I'm only interested in WP dev versions of scripts :) –  Paul Jan 27 '13 at 20:51
    
Also there is no non-minified version of backbone.js for some reason. –  Wyck Jan 27 '13 at 23:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.