Pause your code when a specific function fired

PHOTO EMBED

Mon May 24 2021 15:50:24 GMT+0000 (Coordinated Universal Time)

Saved by @ejiwen #javascript

function sum(a, b) {
  let result = a + b; // DevTools pauses on this line.
  return result;
}
debug(sum); // Pass the function object, not a string.
sum();
content_copyCOPY

https://developer.chrome.com/docs/devtools/javascript/breakpoints/