NativeScript / android

NativeScript for Android using v8
https://docs.nativescript.org/guide/android-marshalling
Apache License 2.0
518 stars 136 forks source link

fix: pull js stack trace from wrapped NativeScriptExceptions #1774

Closed rigor789 closed 11 months ago

rigor789 commented 12 months ago

Unwrap and print stack traces from RuntimeException that are caused by a NativeScriptException. This now properly shows the JS stack trace in the exception for easier debugging.

Before: image

After: image

This should greatly help debug errors like these:

rigor789 commented 12 months ago

Example of terminal output from throwing a dummy exception in the activity callbacks: (left is current, right is with this PR)

image