Debugging JavaScript

The basic of the debugging is printing variables. But how to write such an object in JavaScript? Just write a simple code:

console.debug (variable)

Variable content appears in the console.

How to display console in Firefox?

  1. Install Firebug extension
  2. Right-click anywhere on the page
  3. Select “element to examine”

How to display console in Google Chrome?

  1. Right-click anywhere on the page
  2. Select “check control”
This entry was posted in JavaScript. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>