hops-debug v15.2.1
Hops Debug
Please see the main Hops Readme for general information and a Getting Started Guide.
This package proxies the debug package from npm and makes it available for server- and client-code.
Read more about how we are using debug in Hops here.
Installation
Add this package as a dependency to your project:
npm install --save hops-debugIf you don't already have an existing Hops project read this section on how to set up your first Hops project.
Usage
import / require this package to create a debugger:
import debugFactory from 'hops-debug';
const debug = debugFactory('my-tag');
debug('something I want to log: %s', 'here is a string');To see the debug output you can start your application with the environment variable DEBUG=my-tag set on the command line. \
To see the debug output in the browser console you can set the cookie hops_debug to my-tag.
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago