Then your devtool can grab the _source off the element (after enabling react-jsx-source) and use that to display the file/line information as part of the error. You will want to emit an event when you start processing the element**, an event when you do an operation (I think that event already exists), and an event when you finish processing the element. To get an idea of the structure, you will need to look at #5590. You're welcomed to take a stab at it, but just know that you're probably in for a rough time in terms of a code review. The desired output would be something like MyFileName.js:54 Honestly, this probably isn't the greatest first bug, until I first blaze the trail by providing an example that you can replicate.
0 Comments
Leave a Reply. |