How to disable friendly error messages in Microsoft Edge

I am trying to debug a failed application in Microsoft Edge, but it gives a friendly error page:

There is a download problem on this page

We tried to download this page several times, but the problem with this site still remains. We know that you are better off doing something than watching this reboot over and over, so try returning to this page later.

Internet explorer has a way to disable friendly error messages. Is this also possible in Microsoft Edge? I would like to know on which line of code the problem occurs.

+7
microsoft edge
source share
3 answers

It seems that at the moment they are not. However, you can use the F12 developer tools for debugging. The friendly page contains the actual HTTP response code, so you may have an idea. In addition, if you require additional information, you can check the complete request / response information using the F12 network tool to get the data that the server is responding to.

+1
source share

You are probably affected by this closed bug .

There is no easy way to fix this right now, a fuzzy error message will probably not help (since you are not getting an HTTP error on the server side, this is only the browser that causes the error and truncates the connection).

On the other hand, the developer tool will not help either: Edge "smartly" automatically closes it when an error occurs, and if you open a story, it is empty (there is no way to save it, I tried all the buttons).

I have this problem on the site that I am developing, but I canโ€™t understand what will happen.

EDIT - after a long time, I fixed this problem in my environment. Unfortunately, I am pretty sure that this will not help too many other developers, because the error seems to occur for a different reason, but still ... that is my usecase.

What froze my site was a combination of CSS media queries (follow the less used ones):

@media (min-width:calc(@screen-mobile-size + 1px)) { .hero_mobile { display: none; } .hero_desktop { display: inline; } } 

... and a few lines below ...

 @media (max-width: @screen-mobile-size) { height: auto; max-height: 600px; .hero_mobile { display: inline; } .hero_desktop { display: none; } } 

I tested a lot of combinations, but there is only one rule: I canโ€™t provide as media queries, no matter what is inside them! It just crashes the browser.

In my case, the fix was pretty simple: just prohibit embedding the first CSS rule inside the media query, so ...

 .hero_mobile { display: none; } .hero_desktop { display: inline; } // ... @media (max-width: @screen-mobile-size) { height: auto; max-height: 600px; .hero_mobile { display: inline; } .hero_desktop { display: none; } } 
+1
source share

When you see this, try pressing F12 and the debugger tab, setting break-on-all-errors. When you refresh, the last one is torn before the page reloads for some odd reason and causes this page to fail, most likely it may cause some unclear error.

Most likely, you will find that Edge does not process jQuery("someselector:visible") and updates, but it works with jQuery("someselector").filter(":visible") , but this is probably just an incomprehensible error in the old jQuery 1.x.

0
source share

All Articles