blueslip: Add support for development environment JS exception popups in portico pages
See original GitHub issueWe have a nice system implemented via the blueslip module, where any JavaScript exceptions seen in the Zulip development environment when working on the app are popped up on the screen, helping ensure one can’t miss them.
However, this system does not work when working on portico pages like /devtools/integrations, which is an inconsistent and confusing debugging experience. We should do whatever is required to make this system useable on any page in the Zulip development environment.
This block of code is responsible for triggering this behavior:
function report_error(msg, stack, opts) {
opts = {show_ui_msg: false, ...opts};
if (stack === undefined) {
stack = "No stacktrace available";
}
if (page_params.debug_mode) {
// In development, we display blueslip errors in the web UI,
// to make them hard to miss.
blueslip_stacktrace.display_stacktrace(msg, stack);
}
It is possible that all we need to do is make sure page_params.debug_mode is True; but it’s likely we’ll need to do a bit debugging afterwards to make sure the blueslip_stacktrace module works properly.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (8 by maintainers)

Top Related StackOverflow Question
@PIG208 if you face any problems solving this you can discuss it on https://chat.zulip.org
Thank you! I’m working to create a WIP PR for this.