Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support raw console.trace in wrapped mode #151

Closed
pedrolamas opened this issue Jun 23, 2022 · 0 comments
Closed

Support raw console.trace in wrapped mode #151

pedrolamas opened this issue Jun 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@pedrolamas
Copy link

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:

image

On the above, you can see the stack trace just under the "unwrapped", but it is missing from below the "wrapped" call

@pi0 pi0 changed the title Wrapping console hides stack trace from console.trace() calls Support consola.trace Apr 10, 2023
@pi0 pi0 added the enhancement New feature or request label Apr 10, 2023
@pi0 pi0 changed the title Support consola.trace Support raw console.trace in wrapped mode Apr 10, 2023
@pi0 pi0 closed this as completed in d5ab97a Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants