I'm working on a JavaScript function in a Rails 5 application on my localhost, so I open the Chrome debugger tools and add a breakpoint to the application.js file:
Now I make a change to the JS file and reload the page, and the breakpoint is gone from the Chrome debugger tools:
Presumably this is because Rails has changed the UID that it appends to the name of the application.js file (http://localhost:3000/assets/application.self-22a4471f17f42....js?body=1) and Chrome can't maintain the breakpoint.
Is there a setting in Rails to avoid this during development?


debuggerin your script?byebugfor Ruby codebyebugprovides ruby equivalent for javacript'sdebuggerfunctionality. I'd like to think the concept was taken from javascript, I could be wrong. :P