-
Notifications
You must be signed in to change notification settings - Fork 206
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
By default, console.trace()
will also output the javascript stack trace, but once we wrapConsole()
, it stops doing that!
Here's a sample codesandbox showing the problem: https://codesandbox.io/s/console-trace-missing-stack-trace-6jh8s7?file=/src/index.js
Just open the above link on the browser, press F12, and check the output on the console:
On the above, you can see the stack trace just under the "unwrapped", but it is missing from below the "wrapped" call
Mokkapps and pi0
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-]Wrapping console hides stack trace from `console.trace()` calls[/-][+]Support `consola.trace`[/+][-]Support `consola.trace`[/-][+]Support raw `console.trace` in wrapped mode[/+]