Giter VIP home page Giter VIP logo

Comments (11)

paulirish avatar paulirish commented on May 23, 2024

tests

http://src.chromium.org/viewvc/blink/trunk/LayoutTests/inspector/debugger/async-callstack.html
http://src.chromium.org/viewvc/blink/trunk/LayoutTests/inspector/debugger/async-callstack-expected.txt

from devtools-docs.

paulirish avatar paulirish commented on May 23, 2024

cc @pearlchen

from devtools-docs.

paulirish avatar paulirish commented on May 23, 2024

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

from devtools-docs.

paulirish avatar paulirish commented on May 23, 2024

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

from devtools-docs.

paulirish avatar paulirish commented on May 23, 2024

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

from devtools-docs.

paulirish avatar paulirish commented on May 23, 2024

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.

from devtools-docs.

addyosmani avatar addyosmani commented on May 23, 2024

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

from devtools-docs.

pearlchen-old avatar pearlchen-old commented on May 23, 2024

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

from devtools-docs.

pearlchen-old avatar pearlchen-old commented on May 23, 2024

Better timed animated gif:

async-debugging-intro

from devtools-docs.

paulirish avatar paulirish commented on May 23, 2024

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.

from devtools-docs.

paulirish avatar paulirish commented on May 23, 2024

image

from devtools-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.