debugger icon indicating copy to clipboard operation
debugger copied to clipboard

[CallStack] show react components

Open jasonLaster opened this issue 9 years ago • 8 comments

Create React App has begun showing Error Stacks with component information. The benefit of this UI is that it shows users the component tree so they can see where something went wrong.

It would be great if we could show the component names in the call stack. In the screenshot below I include the react render frames, but those might not be useful

@sebmarkbage has a spec for custom stack frames here.


Component Call Stack

Screen Shot 2017-08-27 at 10.34.23 AM.png

Create React App

Screen Shot 2017-08-27 at 10.00.42 AM.png

jasonLaster avatar Aug 27 '17 14:08 jasonLaster

cc @gaearon @bvaughn

jasonLaster avatar Aug 27 '17 14:08 jasonLaster

To be clear we haven't enabled this in React yet but I'm working on it.

gaearon avatar Aug 27 '17 15:08 gaearon

moving this to the icebox. we can re-evaluate in the next release cycle

jasonLaster avatar Mar 07 '18 21:03 jasonLaster

/claim

iocalebs avatar Apr 08 '18 12:04 iocalebs

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Apr 08 '18 12:04 claim

Here's an initial re-write of the components pane, with the goals of

  • separating out components from extra
  • adding children
  • making it behave like a tree (WIP - we should use the Tree component)

Next steps:

  1. land this branch
  2. Use the managed tree component to let users expand and see other component children
  3. on select navigate to the components render function (we have location)
  4. on select update the props&state in the component pane

https://github.com/jasonLaster/debugger.html/tree/components

Screen Shot 2018-05-12 at 9.58.54 PM.png

jasonLaster avatar May 13 '18 02:05 jasonLaster

here is a branch for the component tree - https://github.com/devtools-html/debugger.html/compare/master...jasonLaster:component-tree?expand=1

jasonLaster avatar May 17 '18 20:05 jasonLaster

Moving to the icebox

jasonLaster avatar Aug 03 '18 14:08 jasonLaster