top | item 38257964

(no title)

altano | 2 years ago

Oh! I understand the question now.

You can put any expression into a conditional breakpoint, so anything you can do in the console you can do in a conditional breakpoint.

So, if you're doing this sort of thing once, you can just type it into the console and you're golden. But if you want to modify a stack local variable over and over again every time it is initialized, it's much easier to do in a conditional breakpoint because then it will happen every time that line of code runs, and your debugger never has to pause. (see https://alan.norbauer.com/articles/browser-debugging-tricks#...)

discuss

order

BMorearty|2 years ago

Got it! Thank you for the explanation.