Google Earth API

Debugging

  1. Introduction
  2. Framerate
  3. Debuggers
  4. Other resources

Introduction

JavaScript debugging tools can help to troubleshoot issues with your Earth API application. There are a number of such tools available, some of which are listed below.

For additional help, refer to the links listed in the Other resources section.

Framerate

You can toggle the display of framerate and other rendering statistics in your Google Earth API application by pressing Ctrl-Shift-A (Cmd-Shift-A on OS X)

Debuggers

JavaScript debuggers are invaluable in the development of your Earth Plugin application.

In addition to the applications listed below, Apple's Safari browser, Google Chrome, and Microsoft Internet Explorer 8 and above include JavaScript debuggers and other developer tools.

  • To access Safari's tools, select the Advanced tab from the Preferences dialog, and select Show Develop menu in menu bar. Debugging tools are then available from the Develop menu.
  • Chrome's developer console can be accessed by selecting > Developer > JavaScript Console.
  • In Internet Explorer 8, select Tools > Developer Tools, or press F12.

Other resources

There are plenty of JavaScript debugging resources available on the web.

  • Use a JavaScript debugger to help identify problems, like the one available in the Chrome Developer Tools. Start by looking in the JavaScript console for errors.
  • The Google AJAX API Playground has a built-in debugger, using Firebug Lite. The Playground lets you modify a number of Google Earth API examples and see your changes reflected in the plugin instance on the page.
  • The Google Maps API documentation includes a screencast introducing the use of the Chrome Developer Tools for Mapsmaking.
  • Post questions to Stack Overflow. Guidelines on how to post great questions are available on the Forums page.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.