How to debug obfuscated JavaScript?

To debug obfuscated JavaScript code, you need to use a JavaScript formatter or beautifier.

Go to the following link to beautify JavaScript,

In the left section, add your obfuscated JavaScript code and click Beautify as shown below,

On clicking, you can see Beautified JavaScript code in the right section.