silverstripe-behat-extension icon indicating copy to clipboard operation
silverstripe-behat-extension copied to clipboard

JS stacktrace

Open chillu opened this issue 11 years ago • 2 comments

We catch window.onerror, but only output the message, which isn't very helpful and makes for a lot of Heisenbugs. The HTML5 spec supports error objects in this method now, so we should use it.

Look into Stacktrace.js, might save us some time: https://github.com/eriwen/javascript-stacktrace See https://github.com/eriwen/javascript-stacktrace/issues/26 for its onerror support

chillu avatar Sep 26 '13 09:09 chillu

I'm struggling with this right now. If I struggle any more I might need to actually implement this. :)

tractorcow avatar Aug 04 '14 05:08 tractorcow

I've made a basic attempt at this with https://github.com/silverstripe-labs/silverstripe-behat-extension/commit/58f54ae239be123fc245ccf561dd8ab298b587a2

Fortunately FF 31 supports error object in window.onerror.

tractorcow avatar Aug 08 '14 04:08 tractorcow