News for hackers. Stuff that matters.
Re:Firefox Developer Edition by masklinn on Monday November 10, 2014 @01:07PM (#8585122)
> What tools do you need?

Safari 8 introduced "breakpoint actions" similar to Xcode's: when a breakpoint is set, it can be configured to not actually break (keep running even if the breakpoint condition matches) and if it matches:

* log a message

* play a sound

* execute code

* run a probe

Each action type can be used any number of time on the same breakpoint.

It's not the most stable and almost undocumented — the only documentation I've found is the second half of WWDC'14 Session 512 "Web Inspector and Modern JavaScript" (starting ~37mn in) — but it's a great system, one I've been waiting for for a long time, and one I'd like to see more of. Especially with all the other features in e.g. the Xcode version: Xcode can ignore the first n hits of a breakpoint and can capture an OpenGL ES frame. In a browser, the breakpoint could allow capturing the DOM state, the renderstate or a WebGL frame.

Re:Firefox Developer Edition by juandopazo on Monday November 10, 2014 @05:19PM (#8586959)
You can do this in the current dev tools by setting a conditional breakpoint. Conditional breakpoints allow you to write an expression which you can force to always be falsy. For example, "console.log()" returns undefined so it's falsy and it won't actually break.
Re:Firefox Developer Edition by masklinn on Tuesday November 11, 2014 @03:16AM (#8588843)
> You can do this in the current dev tools by setting a conditional breakpoint.

It only performs one of the possible actions, is not extensible and the UI is terrible. So no, you can not "do this", you can do about 20% of it (possibly less so in the future) and stab your eyes out while doing it.

I know about that option, and I'd very much like to stop having to use it thanksbutnothanks.

Re:Firefox Developer Edition by sebasmagri on Monday November 10, 2014 @04:57PM (#8586792)
Sounds great. I'd love to see it in https://ffdevtools.uservoice.com/
Re:Firefox Developer Edition by serve_yay on Monday November 10, 2014 @01:26PM (#8585251)
Hmm, interesting!