user938363
user938363

Reputation: 10350

No option of debug JS remotely on Android simulator

I am using android 8.1 simulator to debug my React Native (0.62) app with VS code on Win10. After firing up the app with react-native run-android, Ctrl+m brings up the dev menu:

enter image description here

But there is no option of Debug JS remotely in the menu. How can I bring up the option of Debug JS Remotely?

Upvotes: 1

Views: 473

Answers (1)

Mister Smith
Mister Smith

Reputation: 28158

You should be able to debug a RN app in Chrome dev tools, unless you are running a production build. If you want to use another debugger, you can set it with the REACT_DEBUGGER env. variable. Example:

REACT_DEBUGGER="node /path/to/launchDebugger.js --port 2345 --type ReactNative"

For VSCode there is this extension. There is a section explaining how to debug.

Upvotes: 2

Related Questions