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.

With node -inspect debug() doesn't display

See original GitHub issue

Hi, When i use node -inspect or babel-node -inspect i only see console.log in chrome and not the debug() message. image

Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
mrheincommented, Jun 14, 2017

FYI inspector protocol workaround ugly… const debug = require(‘debug’); debug.log = console.log.bind(console);

1reaction
thekiwicommented, Sep 5, 2017

@TooTallNate - Noticed you closed this issue. I realize that my issue is not quite the same as the original, so perhaps I should create a new issue?

Just to confirm, are we now expected to use debug.log = console.log.bind(console); on every project that we debug via Node’s --inspect?

Read more comments on GitHub >

github_iconTop Results From Across the Web

With node -inspect debug() doesn't display · Issue #424 - GitHub
Hi, When i use node -inspect or babel-node -inspect i only see console.log in chrome and ... With node -inspect debug() doesn't display...
Read more >
Debugging - Getting Started - Node.js
This guide will help you get started debugging your Node.js apps and scripts. Enable Inspector. When started with the --inspect switch, a Node.js...
Read more >
How To Debug Node.js with the Built-In Debugger and ...
In your terminal, run the node command with this debugger option as follows: node inspect badLoop. js.
Read more >
How do I debug node.js errors when my code is nowhere in ...
Show activity on this post. You could do something like for debugging such errors. ... For more info check node app error codes....
Read more >
How to Debug Node.js Code Using Multiple Tools - Kinsta
Start an application using node inspect, e.g. node inspect app.js. The debugger pauses at the first line and displays a debug> prompt: $...
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