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.

Allow disabling of console clearing

See original GitHub issue

When debugging an ejected script via console.logging different things, I found it quite difficult / annoying that multiple pieces of this script clear the the console when it detects stdout.isTTY (start.js and react-dev-utils/WebpackDevServerUtils.js).

I would like to recommend some kind of argument or environment variable to disable that behaviour, so that we wouldn’t need to eject and modify and clone to simply enable console logging.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:37
  • Comments:39 (7 by maintainers)

github_iconTop GitHub Comments

51reactions
Timercommented, Jun 18, 2017

I’m not sure this is going to be something we allow; why not edit the file in node_modules/ while debugging?

And you really shouldn’t be using console debugging anyway 😅. Why not use something like VSCode with built-in debug support?

48reactions
viankakrisnacommented, Nov 15, 2017

or run it with FORCE_COLOR=true npm start | cat or FORCE_COLOR=true yarn start | cat if you use yarn. Taken from https://github.com/reasonml-community/reason-scripts#help-tips-and-tricks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable ``console.clear()`` - javascript - Stack Overflow
You can solve this in two ways,. First, you can write a firefox extension which executes a javascript on page load and assigns...
Read more >
How to Disable Console Logging in Spring Boot - Baeldung
Learn how to configure a Spring Boot application so that it does not log to the console, whether it is using Logback, Log4j2, ......
Read more >
console.clear() - Web APIs - MDN Web Docs
The console.clear() method clears the console if the console allows it. A graphical console, like those running on browsers, will allow it; ...
Read more >
Disabling and enabling individual controls - AWS Security Hub
To enable a disabled control (console)​​ Open the AWS Security Hub console at https://console.aws.amazon.com/securityhub/ . Confirm that you are using Security ...
Read more >
TPM Management Console Shows an Error Message ... - Dell
TPM Management Console Shows an Error Message After Clearing / Disabling / Deactivating TPM in Windows 10 Creator's Edition.
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