question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

help - how to enter app name

See original GitHub issue

node v8.11.4 oSX 10.13.5 Express 4.14.1

I’m having general problems. I can get debug to work using this only: DEBUG=* node ./bin/www. But then I see all the output for all express processes. It will not accept my app name, which appears to here process.env.npm_package_name.

I enter it like this DEBUG=appName node ./bin/www

This is true- if(debug.enabled){ console.log('true') }

Logging the functions back works; they are not undefined.

In my app.js I’ve included this.

const log = debug('app:log')
const error = debug('app:error')
log.log = console.log.bind(console); 
log('hello')
error('error')

When I used DEBUG=* the error and log are both green, rather than one being red and one being green.

Sorry to post a help request here. If it’s out of line I can move it to SO. I found some good stuff here, but none of it seemed to work for me https://stackoverflow.com/questions/26112075/express-debug-module-not-working

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Qix-commented, Sep 24, 2018

Yeah, sorry about that, that post is wrong. 😃 When in doubt, check the readme 💃

1reaction
Qix-commented, Sep 24, 2018

Right - you put in DEBUG=foo:bar - whatever you pass to debug() you must also put in the DEBUG variable. We don’t look at package.json at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The App Name you entered has already been used
Developers can ”reserve” names by creating an app with a specific name in the developer control panel but not publish it yet. Sorry,...
Read more >
How To Name An App: Tips, Tricks & Expert Secrets | ThinkLions
1. Reflect Your App's Core Features · 2. Differentiate Your Name With A Play On Words · 3. Keep It Short and Memorable...
Read more >
How to Reserve an App Name - Messapps
How to Reserve an App Name ; Login to your itunesconnect.apple.com account. Go to My Apps in the top right corner; Add new...
Read more >
Reserve your app's name - Windows apps - Microsoft Learn
Choose your app's type. Enter the name you'd like to use and click Check availability. If the name is available, you'll see a...
Read more >
Downloading the “[INSERT APP NAME]” app - Reginfo.gov
Downloading on an Android: 1. Go to Google Play and search for “[INSERT APP. NAME].” 2. Download the app by tapping on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found