javascript - How do I debug in IE if there are no errors being thrown? -
I'm unable to debug IE (multiple versions, I'm using version 11, somebody else 7, the requirements are to support 9+) The reason is that there are no errors in the console do not load some parts of the page when Firefox has encountered an error, an error was thrown That was the reason I got some clue which was wrong. Maybe I'm not using the developer tools correctly, but everything looks good under the console, just like the page has broken.
There are some things you can do to help your life:
Try a console.log
wrapper
Most versions of IE crash and burn if there is a console.log
statement The console is not open, things fail silently, I suggest a wrapper, something like this:
Use window.errorerror
window.error
is a little hack, but it is sometimes really Can the. It can tell you in a useful direction:
Add a alert
at the beginning of each file to make sure it is loaded and loaded.
Using a warning can help tell you that there is a syntax error in loading the file.
Comments
Post a Comment