tapzero icon indicating copy to clipboard operation
tapzero copied to clipboard

stacktraces missing

Open dominictarr opened this issue 4 years ago • 5 comments

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

dominictarr avatar Oct 05 '21 23:10 dominictarr

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

Raynos avatar Oct 06 '21 07:10 Raynos

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 avatar Oct 06 '21 11:10 Raynos

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 avatar Oct 06 '21 11:10 Raynos

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 avatar Oct 06 '21 11:10 Raynos

Improved by https://github.com/optoolco/tapzero/pull/4

Raynos avatar Oct 06 '21 11:10 Raynos