How to debug JavaScript In Browser

What you can learn from this video:
How to debug JavaScript in google chrome for windows machine?
What is breakpoint?
How to setup a breakpoint?
How to see call stack?
How to Step into a function definition?
How to Step out of a function definition?
What is console in chrome developer console?
What is watch in debugging?
How to change variable values at runtime?

To debug JavaScript in Google chrome use developer tools.

To launch Developer Tools in Google chrome
1. Click on Customise and Control Google chrome button on the top right corner of the browser window
2. From the More tools option, select Developer tools

Or you can use the shortcut F12 key from keyboard

Or right click on page and select Inspect

Setting breakpoints in Google Chrome : To set a breakpoint, simply click on the grey margin where you see line numbers in the Sources tab.

Keyboard shorcut for debugging
Step over — F10
Step into — F11
Step out — Shift + F11
Continue — F8

You can also use the respective buttons in the Developer tools to step thru the code instead of using the keyboard shortcuts.

You can also visit our site for more such JavaScript related topics -

http://www.cheezycode.com

We are Social. Follow us -

Facebook — http://www.facebook.com/cheezycode

Twitter — http://www.twitter.com/cheezycode

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.