6 ms·
You can also trigger the debugger only if certain conditions exist. This is helpful if you are trying to fix a bug in a code branch that is hit very often, but
by oomkiller 14y ago
You can also trigger the debugger only if certain conditions exist. This is helpful if you are trying to fix a bug in a code branch that is hit very often, but the bug only happens under certain conditions.
if (this.foo()) debugger
- k3n 14y agoChrome also supports conditional breakpoints[1]. 1. https://developers.google.com/chrome-developer-tools/docs/scripts-breakpoints https://developers.google.com/chrome-developer-tools/docs/sc...