However, if like me you include many js files in your rails app, your app will take ages to load in your browser so you may not always want to load all your js files one by one in dev mode especially when you’re not trying to debug your js code. So a quick hack is to add a check for a param such as ‘jsdebug’ in your include tag such as:
So now you just need to add ?jsdebug to your location and hit refresh.
In fact, you can get rid of the development check so that you can debug your js even in prod, just make sure to make the param name longer and not easily guessable.
Finally, if you don’t want to type the params manually everytime you want to debug your app’s js, just drag and drop this bookmarlet: js debug.