The Error Log is the place to track down syntax and parser errors that may cause an application or webpage to behave unexpectedly.
Click on the Errors icon in the application toolbar to access the Error Log. The number of errors for the current debugging context is conveniently displayed in the icon itself.
To search through all errors on a page, use the Search control on the Error Log toolbar.
To add or remove tabs from the Error Log, select the appropriate checkbox from the Error Log tab of the Opera Dragonfly Settings.
<img src="img/error-tabs.png" alt="Enable and disable Error Log tabs" title="" />
Error messages can be opened one by one by clicking on them, or globally by clicking the Expand All icon in the Error Log toolbar.
There are three error types displayed in the Error Log:
- Error: An example would be a syntax error or an uncaught exception.
- Information: This provides information, such as for an unknown property or value.
- Warning: An example is when console.warning() is used.
You can direct messages to the Error Log programmatically by using the
console.assert() methods. For more information, see the Console chapter.
Custom CSS filters can be defined in the Error Log settings tab to remove certain types of errors from the All and CSS tabs of the Error Log. Comma-separated filters will be matched and ignored. For example, a filter such as
_padding will force the Error log to ignore the IE6 underscore hack for padding properties.
<img src="img/css-filter.png" alt="Filter for removing known CSS errors" title="" />
Clearing the Error Log
The Error Log is cleared by clicking the trashcan icon in the toolbar.