7.2.1 • Published 4 years ago

pouchdb-debug v7.2.1

Weekly downloads
8,897
License
Apache-2.0
Repository
github
Last release
4 years ago

pouchdb-debug

PouchDB.debug() API as a standalone module. Provides direct access to debug which can be used for debugging PouchDB's internal operations.

This module is currently part of PouchDB core; you don't need to do anything to use it. However, in PouchDB v7.0.0 the debug() API will be moved to a separate plugin.

Usage

npm install pouchdb-debug

Then attach it to PouchDB:

var pouchdbDebug = require('pouchdb-debug');
PouchDB.plugin(pouchdbDebug);

To enable debug mode, just call:

PouchDB.debug.enable('*');

Then look in your browser console.

In Node.js, you can also set a command-line flag:

DEBUG=pouchdb:* node myscript.js

You can also enable debugging of specific modules. Currently we only have pouchb:api (API-level calls) and pouchdb:http (HTTP requests):

PouchDB.debug.enable('pouchdb:api'); // or
PouchDB.debug.enable('pouchdb:http');

These settings are saved to the browser's LocalStorage. So to disable them, you must call:

PouchDB.debug.disable();

Your users won't see debug output unless you explicitly call PouchDB.debug.enable() within your application code.

For full API documentation and guides on PouchDB, see PouchDB.com. For details on PouchDB sub-packages, see the Custom Builds documentation.

Source

PouchDB and its sub-packages are distributed as a monorepo.

For a full list of packages, see the GitHub source.

7.2.1

4 years ago

7.1.1

5 years ago

7.1.0

5 years ago

7.0.0

6 years ago

6.4.3

6 years ago

6.4.2

6 years ago

6.4.1

6 years ago

6.4.0

6 years ago

6.3.4

7 years ago

6.3.3

7 years ago

6.3.2

7 years ago

6.2.0

7 years ago

0.0.0

7 years ago