Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Asynchronous JS stacks #24

Closed
paulirish opened this issue Dec 6, 2013 · 11 comments
Closed

Asynchronous JS stacks #24

paulirish opened this issue Dec 6, 2013 · 11 comments
Assignees

Comments

@paulirish
Copy link
Member

They're now supported with a setting enabled:
https://codereview.chromium.org/80383004
https://code.google.com/p/chromium/issues/detail?id=272416

We'll need docs for this, on the settings side, and probably on the JS debugging side as well.

image

@ghost ghost assigned dr4b Jan 13, 2014
@paulirish
Copy link
Member Author

cc @pearlchen

@paulirish
Copy link
Member Author

To anyone that wants to play with this feature:

there are a few other tests files for async callstacks in https://github.com/mirrors/blink/tree/master/LayoutTests/inspector/debugger

@ghost ghost assigned paulirish Jan 17, 2014
@paulirish
Copy link
Member Author

post format: similar to http://www.html5rocks.com/en/tutorials/canvas/inspection/

  • let's identify what we think is the most compelling usecase here. should highlight it.. whatever it is. :)
  • coverage of async support:
    • Timers
    • Animation frames
    • XHRs
    • Event listeners
    • MutationObservers
    • Promises
    • CustomElement lifecycle callbacks
    • Object.observe
  • how it works as a user
  • before/after screenshots
  • small demo

@paulirish
Copy link
Member Author

nice screenshot of async event listener stack.

i placed a breakpoint inside of an event handler. after i hit it i clicked back to where the event was registered.

image

@paulirish
Copy link
Member Author

the feature is also fantastic for resolving event listeners:
image

you can walk from the event handler back to where it was registered in jQuery then back to where you asked for it to be registered in your app code.

@addyosmani
Copy link
Member

@pearlchen is there a draft of this that was started somewhere? :)

@pearlchen-old
Copy link
Contributor

@addyosmani Not yet -- other launches have gotten in the way. But this is what I'm working on today/tomorrow.

@pearlchen-old
Copy link
Contributor

Better timed animated gif:

async-debugging-intro

@paulirish
Copy link
Member Author

Obviously this feature is documented here:
http://www.html5rocks.com/en/tutorials/developertools/async-call-stack/

we'll need something in the docs, but this will do for now.

@paulirish
Copy link
Member Author

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants