How do I modify a variable at a breakpoint in Firefox Developer Edition?
The way I do it is to simply type the new variable into the debug console with the new value. For example, I would type: myobj.myprop = newval;
Enter. No different from writing javascript. As long as the variable you are trying to change is in scope at your break point (and not initialized with const
), it should work fine.