-
- Downloads
[IMP] web: display better tracebacks in debug=assets
The recent change in the way debug=assets works (which now bundles all
files in a bundle instead of serving them statically) had a negative
impact on the stacktrace displayed in the error dialog in debug=assets:
it now display the bundle/linenumber instead of the actual file/line
number.
This is not a huge deal, most of the time, because the errors displayed
in the console display the correct information, and the debugging
process should work as before. But it can certainly be annoying in some
cases.
With this commit, we use the Stacktrace.js library to dynamically fetch
the sourcemaps and to decorate the displayed information with the
correct file and line numbers.
closes odoo/odoo#66318
Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
Showing
- addons/base_automation/static/tests/base_automation_error_dialog.js 3 additions, 0 deletions...e_automation/static/tests/base_automation_error_dialog.js
- addons/web/static/lib/stacktracejs/LICENSE 19 additions, 0 deletionsaddons/web/static/lib/stacktracejs/LICENSE
- addons/web/static/lib/stacktracejs/stacktrace.js 3025 additions, 0 deletionsaddons/web/static/lib/stacktracejs/stacktrace.js
- addons/web/static/src/js/services/crash_manager.js 22 additions, 1 deletionaddons/web/static/src/js/services/crash_manager.js
- addons/web/static/tests/helpers/test_env.js 2 additions, 1 deletionaddons/web/static/tests/helpers/test_env.js
- addons/web/views/webclient_templates.xml 1 addition, 0 deletionsaddons/web/views/webclient_templates.xml
addons/web/static/lib/stacktracejs/LICENSE
0 → 100644
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Please register or sign in to comment