4

I have recently upgraded my react native to the latest version 0.62.1 and also downloaded the required react-native-debugger app (standalone app version 0.11.1 ) as specified in the react-native-debugger doc. Now when i enable remote js debugging everything works fine until i press cmd + d for ios or cmd + m for android to open in app developer menu after that debugger is disconnecting automatically and showing the error as shown in the below image.

link to react-native-debugger error image when in app developer menu is opened

As shown in the above image it says Bridge was already shutdown. Because of this i am unable to do inspect element inside react-native-debugger. I have searched in the internet regarding this specific error but unfortunately i did't find any solution.

Edit 1

I have set up a new react native project with react-native-cli and tested. It is also giving the same error. I don't know whether the problem is with new react native version 0.62 or react-devtools version 4.

asked Apr 8, 2020 at 12:24
3
  • react native debugger app doesn't works well, I have also switched to chrome debugging. Commented Apr 9, 2020 at 6:29
  • looks like an issue has been opened regarding this in react-native-debugger repo here is the link github.com/jhen0409/react-native-debugger/issues/494 Commented Apr 9, 2020 at 7:02
  • 1
    @TusharPandey How can U inspect elements in Chrome? Commented Jan 10, 2021 at 23:17

1 Answer 1

0

This error appears to go away in [email protected] , but I experienced it on 0.64.2. The workaround I found was to open inspector without using the dev menu. Two ways:

  1. cmd + i
  2. Right-click inside react-native-debugger and select "Toggle Element Inspector"

enter image description here

If you do open dev menu and break connection again, simply reload to reset the state.

You might also need to confirm your app's react-devtools-core version from your node_modules or lock files match the version embedded inside react-native-debugger. I documented all this here:

https://gist.github.com/sschottler/7771dc034d38b89d9d587dc5d358c386

answered Oct 10, 2021 at 22:31
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.