GithubHelp home page GithubHelp logo

Comments (8)

sebmarkbage avatar sebmarkbage commented on April 19, 2024

Yea I really want this but we can't. Want to add a feature request to the Chrome team to expose source url/line number of functions to DevTools extensions.

from react-devtools.

jackgeek avatar jackgeek commented on April 19, 2024

Yes this is really essential for ease of debugging. Any progress?

from react-devtools.

zpao avatar zpao commented on April 19, 2024

No progress, would love to have some more people involved to make this happen.

from react-devtools.

SanderSpies avatar SanderSpies commented on April 19, 2024

Is this now possible inside Chrome?
Op 7 jul. 2014 22:48 schreef "Paul O’Shannessy" [email protected]:

No progress, would love to have some more people involved to make this
happen.


Reply to this email directly or view it on GitHub
#21 (comment)
.

from react-devtools.

zpao avatar zpao commented on April 19, 2024

Ah sorry, I misread @sebmarkbage's comment. I have no idea if it's possible.

from react-devtools.

jaredly avatar jaredly commented on April 19, 2024

Update: still not possible

from react-devtools.

jaredly avatar jaredly commented on April 19, 2024

This is actually possible, but only if the function isn't "bound" (via .bind). And in my experience, handlers are often bound.
The way to do it is to inspect(thefn) from the console and then it will switch you to the sources tab.
There's not first-class access to source filenames and lines though :(

from react-devtools.

jaredly avatar jaredly commented on April 19, 2024

I think this is as good as we're likely to get, and with the additional ability to "jump to source" of a component, I think that the needs here are met.
Feel free to comment here if there are still things missing.

from react-devtools.

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.