You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When debugging app through VSCode using React Native Tools causes the app to error when console.trace() invoked.
Expected Behavior
Print out the stack trace.
Don't assume stack trace === error
Software versions
React-Native VS Code extension version:
VSCode version: 1.33.0
OS platform and version: Mac OS Mojave
NodeJS version: 11.13.0
React Native version: 0.57.7
Expo SDK version (include if relevant):
Outputs (Include if relevant)
Output of the Debug Console (View -> Toggle Debug Console):
console.trace()...
...trace....
Trace
at Console.trace (internal/console/constructor.js:336:11)...
...trace....
This also makes the app screen the red error screen rendering the app unusable.
I'm trying to make better debug messaging by writing a wrapper. By putting console.log somewhere else, it loses the original context so it loses the filename and line number. I'm trying to get that back with the console.trace() but VSCode seems to assume the only reason someone would want a stack trace is because of an error.
This operates as desired if run from command line and debugging via Chrome or React Native Debugger so it is VSCode specific.
The text was updated successfully, but these errors were encountered:
Actual Behavior
Expected Behavior
Software versions
Outputs (Include if relevant)
console.trace()...
...trace....
Trace
at Console.trace (internal/console/constructor.js:336:11)...
...trace....
The text was updated successfully, but these errors were encountered: