Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native localhost Another debugger is already connected

Not sure if anyone had this problem, since I could not look it up anywhere but I cannot see any logs for react native app because the browser console tells me that "Another debugger is already connected" its a warning that keeps looping.

Metro bundler is telling me that I have to see the javascript logs in the browser. I cannot work on my app without debugging it, can anyone help ?

Metro Terminal Chrome Developer Tools

like image 658
Nata Vacheishvili Avatar asked Apr 27 '20 00:04

Nata Vacheishvili


People also ask

How do I connect to React Native debugger?

You must first launch your app and enter debug mode before connecting it to React Native Debugger. Shake your phone or press Command + Shift + Z or Ctrl + M and select the debug option to activate debug mode.

How do I see console log React Native?

Writing to the logs in a React Native app works just like in the browser: use console. log , console.


1 Answers

This happens if you have another tab opened at http://localhost:8081/debugger-ui as you can only have one instance of the debugger running.

You could either go back to the already running tab and see the logs there or close the other tab and refresh this one.

like image 51
Kevin Amiranoff Avatar answered Sep 21 '22 09:09

Kevin Amiranoff