889 B
889 B
Debugging Scripts (2025.23)
Source: help-portal-704272da511143d686ca6949040b9a68.md.
Locate scripts in browser devtools
- Run the app once, open Sources in Chrome DevTools.
- Search
Ctrl+Pfor files named<WIDGET_NAME>.<FUNCTION_NAME>.jsinside folder<APPLICATION_NAME>undersandbox.worker.main.... onInitializationscripts use widget nameApplication.
Breakpoints
- Add breakpoints on line numbers in DevTools; blue marker indicates active breakpoint.
- Multiple breakpoints allowed; click to remove.
Debug mode
- Add
debugger;statements in scripts. - Launch app with URL parameter
debug=trueto pause automatically at those statements:[https://<TENANT>/.../application/<APP_ID>/?mode=present&debug=true](https:///.../application/<APP_ID>/?mode=present&debug=true`) - Comments are preserved in transformed JS to aid identification.