Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The debugger / React Native was hang if too many console.log messages output to Debug Console #1335

Closed
ccl0504 opened this issue Jul 2, 2020 · 1 comment
Assignees

Comments

@ccl0504
Copy link

ccl0504 commented Jul 2, 2020

Actual Behavior

  1. The debugger / React Native was hang if too many console.log messages output to Debug Console (when enabled debug JS remotely) on Android emulator
  2. It's no problem if JS remote debug was disabled ( the console.log messages were outputted to Output tab.
  3. Same test code on Mac + iPhone emulator was OK
  4. I tried timer callback function to do console.log output for 1 time per second, the debugger was still hang

Expected Behavior

  1. Debugger / React Native won't hang

Software versions

  • React-Native VS Code extension version: 0.16.1
  • VSCode version: 1.46.1
  • OS platform and version: Windows 10 Pro 1909
  • NodeJS version:
  • React Native version: 0.62.2
  • Expo SDK version (include if relevant):

App.js

@SounD120
Copy link
Contributor

SounD120 commented Jul 3, 2020

Hi @ccl0504 and thanks for your question. React Native Tools debugger is based on debugging via local Node.js process. As we found out Node.js has some problems with large amounts of IO due to architectural features: nodejs/node#6379.
I recommend to not overload the debugger thread by non-blocking IO like console.log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants