I need to debug obfuscated JavaScript like this example:
__d(\"DataStore\",[],function(a,b,c,d,e,f){var g={},h=1;function i(l){if(typeof l==\'string\'){retur
There is no single solution for this. The first thing you can to to have something a bit more readable is to copy/paste the javascript code into http://jsbeautifier.org/
The Chrome devtools "Scripts/Sources" pane has a "pretty print" mode (look for the {}
button in the bottom toolbar).
Use a Javascript Beautifier to reformat the code and then debug the code.
Check out http://jsbeautifier.org/
Google Chrome has a "Pretty print" function that allows to reindent the code.
I don't normally use it, so I don't know since when it exists, but it's present in Chrome 21 dev.