Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
pouchdb-debug
Advanced tools
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.
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.
PouchDB and its sub-packages are distributed as a monorepo.
For a full list of packages, see the GitHub source.
FAQs
PouchDB.debug() API to debug PouchDB operations
The npm package pouchdb-debug receives a total of 19,222 weekly downloads. As such, pouchdb-debug popularity was classified as popular.
We found that pouchdb-debug demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.