Allow disabling of console clearing
See original GitHub issueWhen 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:
- Created 6 years ago
- Reactions:37
- Comments:39 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
or run it with
FORCE_COLOR=true npm start | cat
orFORCE_COLOR=true yarn start | cat
if you use yarn. Taken from https://github.com/reasonml-community/reason-scripts#help-tips-and-tricks