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

stacktraces missing #3

Open
dominictarr opened this issue Oct 5, 2021 · 5 comments
Open

stacktraces missing #3

dominictarr opened this issue Oct 5, 2021 · 5 comments

Comments

@dominictarr
Copy link

this is just a code error... it should have a line number and file.
image

@Raynos
Copy link
Contributor

Raynos commented Oct 6, 2021

Will try to reproduce this and see what the best way is to preserve stack traces.

@Raynos
Copy link
Contributor

Raynos commented Oct 6, 2021

Looks like a bug in the browser itself ( https://stackoverflow.com/questions/3734236/how-can-i-rethrow-an-exception-in-javascript-but-preserve-the-stack ).

The only work around I can find is to add an option to not rethrow only for webkit/browsers.

@Raynos
Copy link
Contributor

Raynos commented Oct 6, 2021

Once we remove the exception rethrowing behavior we get this

image
image

Which to me says that debugging promises in webkit is frustrating and the webkit dev tools

@Raynos
Copy link
Contributor

Raynos commented Oct 6, 2021

image

I was able to turn on the debugger and set it to breakpoint on all exceptions and it did break at the actual location of the error.

@Raynos
Copy link
Contributor

Raynos commented Oct 6, 2021

Improved by #4

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

No branches or pull requests

2 participants