Is there a console logger for IE? I'm trying to log a bunch of tests/assertions to the console but I can't do this in IE.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- Keeping track of variable instances
For older version of IE (before IE8), it is not straight forward to see the console log in IE Developer Toolbar, after spending hours research and trying many different solutions, finally, the following toolbar is great tool for me:
The main advantage of this is providing a console for IE6 or IE7, so you can see what are the error (in the console log)
You can access IE8 script console by launching the "Developer Tools" (F12). Click the "Script" tab, then click "Console" on the right.
From within your JavaScript code, you can do any of the following:
Also, you can clear the Console by calling
console.clear()
.NOTE: It appears you must launch the Developer Tools first then refresh your page for this to work.
Simple IE7 and below shim that preserves Line Numbering for other browsers: