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.
source share