Debugging crash in Internet Explorer 9-10

I am a new single site developer. The previous developer left a lot of garbage and erratic code. But the main problem is that when I open this site and try to navigate the pages (just try 1-2 links), it resets my IE 9-10. After I open the page, IE freezes completely, I can not do anything.

My question is:

How can I track the problem (maybe some kind of debugger or an online emulator)? Can you recommend any software or an online JS / HTML error tracking tool that I can use to understand the cause of the crash?

+4
source share
1 answer

Good question!

So! Your site crashes in IE, this is a painful problem that I had several times before. This is not fun, and do not expect a solution with a silver bullet, take it easy that you are not the first to experience this problem.

You can use visual studio to debug IE . Visual Studio allows you to run certain script statements, use breakpoints, and run specific bits of code in Internet Explorer.

If this seems too extreme for you, IE comes with developer tools. However, I doubt it will be of any help if IE crashes on your site. Most likely, it will work even faster when you open the developer tools.

Here are some tips for debugging code that breaks your browser:

  • Does JavaScript disable persist? If it deletes resources one by one.

  • If disabling JavaScript solves your problem, include the script files one by one. (Send fake URLs to other users. Track one file that gives you the problem.

  • Use the alert statements, they are blocked , therefore, in the background, the code is not executed (when things like WebWorkers are used), they do not require any additional tools, while they are dirty, they are the most reliable thing, which you can do. You can put them in the center of the DOM and they will block dom for rendering, which will allow you to pinpoint what the problem is.

  • Add synchronous AJAX calls, while I usually strongly oppose the abuse of AJAX, you can write a small log on your server that accepts these calls and logs. This will allow you to use logging.

  • You know where to ask! A good resource for asking IE for specific odd questions, which even good resources like StackOverflow cannot solve, is the IE Blog . The IE development team responds to comments there, and you can ask questions like “why my site is down” directly.

  • Remember to open the bug report when you find this problem! You want developers to do the same for you.
+14
source

Source: https://habr.com/ru/post/1482581/


All Articles