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, ...

Get Rapid Application Development with Mozilla™ 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.