Closed kylermintah closed 4 years ago
Resolves #127
listen on port
database connection initialization prompt
DEBUG=*
.env
Debug must be imported per file it is used in.
File: /debug.example.ts
/debug.example.ts
import Debug from 'debug'; const debug = Debug('debug.example'); //... Some Code ...// const name = 'blueberry'; debug(name);
The name you use to initialize the Debug instance will show in the console output.
Resolves #127
Changes made
listen on port
anddatabase connection initialization prompt
)DEBUG=*
to your local.env
fileDebug must be imported per file it is used in.
See the following example:
File:
/debug.example.ts
It is important to initialize Debug with the name of the file it is in (exclude file extension)
The name you use to initialize the Debug instance will show in the console output.