Resources and Tools

This page contains resources that you can include in your application, and debugging tools to help while you're developing your application using Gears.

Resources

The gears_init.js source file

Always include the gears_init.js file in your application to get access to the Gears factory and APIs. Save the file using the link below.

The google.gears.factory is the only supported method to access GearsFactory. The way Gears is exposed in the browser could change in the future, but we will always support the google.gears.factory object.

Samples and Tools download

All of the sample applications and the tools described below are found in the zip file provided here. Download the file to your computer and unzip it to access the files.

Tools

Like all Gears applications, tools can only examine the database within their own domain. To examine your application's database, you must copy the tool into your application and load it from within the same domain as the application.

Note: To use these tools, download the Samples and Tools zip file above, then copy the tools into your application.

 

Database Query Tool

The database query tool allows you to run SQL queries interactively against a Gears database. Run this tool from the same domain as the database you wish to inspect.

Location in the sdk: /sdk/tools/dbquery.html

 

LocalServer Inspector

Inspect the contents of the LocalServer, capture URLs, and test ManagedResourceStores.

Location in the sdk: /sdk/tools/webcachetool.html

 

Testing Tip: When testing your app, be sure to clear your browser cache often!