question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

blueslip: Add support for development environment JS exception popups in portico pages

See original GitHub issue

We 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:closed
  • Created 3 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Signior-Xcommented, Mar 24, 2021

@PIG208 if you face any problems solving this you can discuss it on https://chat.zulip.org

0reactions
PIG208commented, Mar 25, 2021

Thank you! I’m working to create a WIP PR for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pop-ups - JxBrowser
This page describes how to work with pop-ups, display or suppress them. ... cannot access DOM or JavaScript, because the popup does not...
Read more >
Zulip Documentation - Read the Docs
Zulip is a powerful, open source group chat application. Written in Python and using the Django framework, Zulip supports both private ...
Read more >
Popup | API Reference | ArcGIS Maps SDK for JavaScript 4.25
The Popup widget allows users to view content from feature attributes. ... See the actions property for information about adding custom actions to...
Read more >
Popups - Mozilla - MDN Web Docs
This page describes popups in general, specifying them, debugging, resizing, and designing them, as well as examples of use. Page action pop-up ...
Read more >
My Popup Won't Work - How Can I Fix It?
Overview Fixing a popup that won't display, or no longer displays can be complicated. It requires helpful tools, and a systematic approach ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found