Right-click a line number to add a conditional breakpoint:
// Pause only when i === 100
for (let i = 0; i < 1000; i++) {
process(i); // Conditional breakpoint here
}
This avoids pausing times to reach the iteration you care about.
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Pause only when conditions are met
Right-click a line number to add a conditional breakpoint:
// Pause only when i === 100
for (let i = 0; i < 1000; i++) {
process(i); // Conditional breakpoint here
}
This avoids pausing times to reach the iteration you care about.