Using the Visual Studio JavaScript Console Window

When I write JavaScript code for pages used in websites, I use the JavaScript console window to view JavaScript errors. I also write custom messages to the console window using console.log() so I can debug my code. (See Figure 1.25.)

Image

FIGURE 1.25 Debugging with the Google Chrome JavaScript console

When running a Windows Store app, you don’t have access to the browser JavaScript console. Instead of using the browser JavaScript console, you need to use the Visual Studio JavaScript Console (see Figure 1.26).

FIGURE 1.26 The Visual Studio JavaScript Console Window

You can view JavaScript errors and ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.