How to debug javascript?

Well, JavaScript isn’t like java or other language you can debug in IDE. JavaScript is script language and you cannot set break point.

The way I do is using console.log() to output variables and check them. While using a timer to pause the script.
timer here: http://www.w3schools.com/jsref/met_win_cleartimeout.asp

Other resources:
http://berniesumption.com/software/how-to-debug-javascript-in-internet-explorer/

How to debug javascript?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s