Live data from Hacker News

Debugging Asynchronous JavaScript with Chrome DevTools

html5rocks.com

1–10 of 50 posts

Re: Debugging Asynchronous JavaScript with Chrome DevTools

#4
post #2

This looks great. Debugging simple 'click' events has always been a non-trivial task for me -- doubly so on touch devices where an a 'click' event can have a range of unpredictable side effects.

Are there any beginner tutorials for debugging events? Even simple ones?

Re: Debugging Asynchronous JavaScript with Chrome DevTools

#7
Protip with this feature: It can resolve where you originally bound your event listeners, regardless of if you used jQuery or whatever. So, either set up a breakpoint or establish an Event Listener Breakpoint (http://goo.gl/YYlbDK) and you can walk back to where you registered the handler.

(Yeah, no idea why an editor killed this comment. :/ Thanks folz!)

Re: Debugging Asynchronous JavaScript with Chrome DevTools

#8
post #4
post #2

This looks great. Debugging simple 'click' events has always been a non-trivial task for me -- doubly so on touch devices where an a 'click' event can have a range of unpredictable side effects.

Are there any beginner tutorials for debugging events? Even simple ones?

http://www.html5rocks.com/en/tutorials/es6/promises/

Re: Debugging Asynchronous JavaScript with Chrome DevTools

#9
post #3

I'd like a real console object in worker (at least a variadic pretty-printing log() function and time()/timeEnd()) and a "break all threads" button too, please. Worker debugging is a pain.

I know it took a while, but take another look: Chrome now has full console support inside of workers: http://crbug.com/63383

Right now, we're doing a bunch of work (hah) on our worker support. We'll address pausing execution in workers as well. Expect good improvements and file a ticket at crbug.com for any other ideas, please!

Re: Debugging Asynchronous JavaScript with Chrome DevTools

#10
post #4
post #2

This looks great. Debugging simple 'click' events has always been a non-trivial task for me -- doubly so on touch devices where an a 'click' event can have a range of unpredictable side effects.

Are there any beginner tutorials for debugging events? Even simple ones?

https://developers.google.com/chrome-developer-tools/docs/ja... gives a decent overview of the basics and what you can do beyond that.
Post reply on HN