DX: log full js errors instead of just error messages (ExceptionsManager) #17771
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
This is really annoying DX to not have full stacktrace of errors in Chrome developer tools.
This kind of error is totally unactionnable without deeper debugging, as we don't have a single stacktrace, while it could be made actionnable easily
Some issues already have been opened regarding this problem, yet they did not get much attention and got closed by stale bot.
#16661
#16205
Test Plan
Errors are logged appropriately in Chrome developer tools with full stacktrace
Release Notes
[ENHANCEMENT][MINOR][ExceptionsManager.js] Log full errors instead of just error messages
Other
I must admin I may not see all the implications of why the message did got logged instead of the full exception in the first place.
If you know why and there's a good reason, please tell me and we can probably do something better than current state to help people debug RN apps.