How to disable remote JS debugging in React-Native

I understand that the usual way to turn off debugging is to go to the developer's menu. The problem is that since I turned on debugging for my application that I am testing (React Native and Android emulator), I get a white screen when the application loads without information on the console and does not have access to the Dev menu to disable debugging.

So I'm stuck. SInce JS debugs that will be application specific. I assume that there is another problem in the emulator or in the reaction, that I can disable it.

Please inform? Thanks

+12
source share
8 answers

I had a similar problem: initializing the remote debugger continued to crash my application, and I could not disable remote debugging through the integrated GUI.

After uninstalling the application from the device (or emulator), remote debugging was disabled when I started the application again.

I assume that the remote debug flag is saved in the general preferences of the application (which are deleted after deletion).

+12
source

If you use on MS: ctrl + m , MAC OS: cmd + m , iPhone / android: shake the device, find “disable JS remote debugging ” and click on it.

+4
source

The only thing that worked for me (on Mac) was to go up to the menu bar and click on “Simulator” and then “Reset Content and Settings ...”. However, he reset all content and settings.

+2
source

Run the application in the device / simulator and quickly execute this command in the mac os / linux shell
adb shell input keyevent 82

Taken from here

+1
source

You can also use the ⌘D key combination when your application is running on iOS Simulatoror, or ⌘M when you are running Android emulator on Mac OS, and Ctrl + M on Windows and Linux.

+1
source

Run the code, I hope this code works fine:

cd android && ./gradlew clean && cd .. && react-native run-android

0
source

I had to do:

 cd android; gradle uninstallDebug; cd ../; react-native run-android 
0
source

You are using on MS: ctrl + m , MAC OS: cmd + m ,

iPhone / android: shake the device, find “disable JS remote debugging” and click on it.

0
source

Source: https://habr.com/ru/post/1260073/


All Articles