The Wayback Machine - https://web.archive.org/web/20201122042914/https://github.com/exokitxr/exokit/issues/1106
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

Add console.error support #1106

Open
avaer opened this issue May 26, 2019 · 0 comments
Open

Add console.error support #1106

avaer opened this issue May 26, 2019 · 0 comments

Comments

@avaer
Copy link
Member

@avaer avaer commented May 26, 2019

In browsers, console.error gives a convenient stack breakout nubbin.

We should probably just log the full stack with the message in Exokit (new Error().stack). Would help with debugging with THREE.js since it uses this technique extensively.

Luckily we also hijack the user console at the window level so we can do this pretty easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.