Hello,
Between the versions 1.8.2 and 1.8.3, a behavior was changed in the error handler. If we serve a function that runs into a python error, the behavior goes from
- 1.8.2 : Error 505 appearing in the browser, full traceback in the console
to
- 1.8.3 : Simple error message in the browser, nothing in the console
The loss of traceback turns debugging into a nightmare.
The simple error message seem to come from this, whose code actually changed between the two versions:
https://github.com/holoviz/panel/blob/v1.8.3/panel/io/handlers.py#L369
I propose to replace the simple e put in the string by its traceback, and print it to have it in the console to benefit from IDE console features.
I propose a pull request with the associated changes.
Thanks,
Thibault
Hello,
Between the versions 1.8.2 and 1.8.3, a behavior was changed in the error handler. If we serve a function that runs into a python error, the behavior goes from
to
The loss of traceback turns debugging into a nightmare.
The simple error message seem to come from this, whose code actually changed between the two versions:
https://github.com/holoviz/panel/blob/v1.8.3/panel/io/handlers.py#L369
I propose to replace the simple e put in the string by its traceback, and print it to have it in the console to benefit from IDE console features.
I propose a pull request with the associated changes.
Thanks,
Thibault