Tuesday 22 December 2015

How to debug minified JavaScript


How to debug minified JavaScript files


We can debug JavaScript files by placing the debug / break points in the dev tools. Generally the JavaScript files on the production are minified.

To debug such minified files, Web browsers provides the "Pretty print" feature which un-minifies the source file.
  • How to un-minify JavaScript file in Chrome
     Open the developer tools (F12) > Source tab > Open the minified script that you want debug  (ctrl + o)  > at the bottom you will see "Pretty print" button ({})




  • How to un-minify JavaScript file in Firefox

      Open the developer tools (F12) > go to Debugger tab > Open the minified that you want debug (ctrl + o) > at the bottom you will see "Prettify source" button ({})


  • How to un-minify JavaScript file in Internet Explorer
      Open the developer tools (F12) > go to Debugger tab > Open the minified that you want debug  (ctrl + o) > at the top icon panel you will see  a button with tooltip (Load the sources mapped to this generated file) to un-minify the JS file



3 comments:

  1. Thanks for your information provided
    Sanjary Kids is one of the best play school and preschool in Hyderabad,India. The motto of the Sanjary kids is to provide good atmosphere to the kids.Sanjary kids provides programs like Play group,Nursery,Junior KG,Serior KG,and provides Teacher Training Program.We have the both indoor and outdoor activities for your children.We build a strong value foundation for your child on Psychology and Personality development.
    ­play school in hyderabad

    ReplyDelete
  2. Good Information
    We are the best piping design course in Hyderabad, India. Sanjary academy Offers Piping Design Course and Best Piping Design Training Institute in Hyderabad. Piping Design Institute in India Piping Design Engineering.
    Piping Design Course
    Piping Design Course in india
    Piping Design Course in hyderabad

    ReplyDelete
  3. Nice Post
    Sanjary kids is the best playschool, preschool in Hyderabad, India. Start your play school,preschool in Hyderabad with sanjary kids. Sanjary kids provides programs like Play group,Nursery,Junior KG,Serior KG,and Teacher Training Program.
    play school in hyderabad
    Preschool in hyderabad
    Preschool teacher training course in hyderabad
    pre and primary teacher training course in hyderabad

    ReplyDelete