Is your feature request related to a problem? Please describe.
The JavaScript SDK only prints the main error message. This information is not enough for debugging, as we are missing the part of the code that failed.
Describe the solution you'd like
I would like to get the error stack trace to debug the issue properly.
Describe alternatives you've considered
No response
Additional context
No response