The OpenLayers.Console namespace is used for debugging and error logging. If the Firebug Lite (../Firebug/firebug.js) is included before this script, calls to OpenLayers.Console methods will get redirected to window.console. This makes use of the Firebug extension where available and allows for cross-browser debugging Firebug style.
Note
Note that behavior will differ with the Firebug extention and Firebug Lite. Most notably, the Firebug Lite console does not currently allow for hyperlinks to code or for clicking on object to explore their properties.
Summary
| The OpenLayers.Console namespace is used for debugging and error logging. |
| |
| Log an object in the console. |
| Writes a message to the console, including a hyperlink to the line where it was called. |
| Writes a message to the console with the visual “info” icon and color coding and a hyperlink to the line where it was called. |
| Writes a message to the console with the visual “warning” icon and color coding and a hyperlink to the line where it was called. |
| Writes a message to the console with the visual “error” icon and color coding and a hyperlink to the line where it was called. |
| Tests that an expression is true. |
| Prints an interactive listing of all properties of the object. |
| Prints the XML source tree of an HTML or XML element. |
| Prints an interactive stack trace of JavaScript execution at the point where it is called. |
| Writes a message to the console and opens a nested block to indent all future messages sent to the console. |
| Closes the most recently opened block created by a call to OpenLayers.Console.group |
| Creates a new timer under the given name. |
| Stops a timer created by a call to OpenLayers.Console.time(name) and writes the time elapsed. |
| Turns on the JavaScript profiler. |
| Turns off the JavaScript profiler and prints its report. |
| Writes the number of times that the line of code where count was called was executed. |