I came across this today, when I was playing around with someone else’s website.
I realized I could attach a break-point in the debugger to some line of code before what I wanted to dynamically edit. And since break-points stay even after a reload of the page, I was able to edit the changes I wanted while paused at break-point and then continued to let the page load.
So as a quick work around, and if it works with your situation:
- Add a break-point at an earlier point in the script
- Reload page
- Edit your changes into the code
- CTRL + s (save changes)
- Unpause the debugger