News for hackers. Stuff that matters.
Re:Using 'debugger' to help in javascript debugging by oomkiller on Monday February 18, 2013 @03:35PM (#5240469)
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
Re:Using 'debugger' to help in javascript debugging by k3n on Monday February 18, 2013 @03:46PM (#5240531)
Chrome also supports conditional breakpoints[1].

1. https://developers.google.com/chrome-developer-tools/docs/sc...