O'Reilly logo

Rapid Application Development with Mozilla™ by Nigel McFarlane

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

17.5. Debug Corner: Logging and Testing

The logComment() method of the Install object is the only way to produce diagnostic messages from the install.js file, unless alert() is considered. Messages are logged to the install.log file, which is stored in the top directory of the platform install area.

A common source of problems in the install process is poor matching between hierarchical path names in the XPI file and hierarchical path names on the local file system. If the two are not stated correctly, or do not match correctly, then zero files might be copied by that step of the installation process. This can easily be detected by examining the install.log installation log and by checking the file system.

If nothing (or the wrong thing) is happening, ...

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