O'Reilly logo

JavaScript Testing by Liang Yuxian Eugene

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—debugging with Chrome

  1. We'll now learn how to use the console and make use of breakpoints in order to simplify our debugging session. We'll start with the console.
  2. The console basically shows what you have done within a debugging session. We first see how we can access the console.
  3. Start off by opening the file sample.html in your Google Chrome browser, if you have not done so already. Once you have done that, perform the following steps in order to show the console:
  4. Open your JavaScript debugger by selecting the Page menu icon Time for action—debugging with Chrome which can be found on the right-hand side of the URL input field, and then go to Developer | Debug JavaScript ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required