Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Expand and Highlight Components That are Responsible for Warnings or Errors #34

Closed
sebmarkbage opened this issue Apr 28, 2014 · 4 comments
Milestone

Comments

@sebmarkbage
Copy link
Contributor

React has a warning module that allow us to intercept warning messages. These could be displayed inside the tree so that it's easy to spot which components are responsible for warnings or errors thrown and the properties passed into them.

@jaredly jaredly modified the milestone: 2.x Jun 18, 2015
@jaredly
Copy link
Contributor

jaredly commented Jun 25, 2015

I'm looking around for the place to intercept warning messages, and I can't find it in the code or docs. Could you point me to a file?

@sebmarkbage
Copy link
Contributor Author

There is not really any way right now. Other than replacing the warning module with an override, which is what we do internally.

@sebmarkbage
Copy link
Contributor Author

You also, just intercept console.error (or console.warn for 0.13)

@bvaughn
Copy link
Contributor

bvaughn commented Aug 19, 2019

React DevTools has been rewritten and recently launched a new version 4 UI. The source code for this rewrite was done in a separate repository and now lives in the main React repo (github.com/facebook/react).

Because version 4 was a total rewrite, and all issues in this repository are related to the old version 3 of the extension, I am closing all issues in this repository. If you can still reproduce this issue, or believe this feature request is still relevant, please open a new issue in the React repo: https://github.com/facebook/react/issues/new?labels=Component:%20Developer%20Tools

@bvaughn bvaughn closed this as completed Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants