Trying to debug with react native, following documentation

I’m on Windows 10, using expo 47.0.6, I’m trying to debug. I use VsCode and I’m aiming for android to start off.

I freshly created a project with expo’s create-expo-app utility…

I read in Debugging - Expo Documentation

Open the project in Android Studio: open -a /Applications/Android\ ./android

I copy-pasted the command and get the message:
'open' is not recognized as an internal or external command, operable program or batch file.

I searched and found a suggestion that open should be replaced with start if using npm. I tried replacing open with start:
start -a /Applications/Android\ ./android

I got the response:
The system cannot find the file -a.

I removed the -a, got the answer:
Invalid switch - "/Applications".

Here’s an extract of the package.json file:

  "dependencies": {
    "expo": "~47.0.6",
    "expo-status-bar": "~1.4.2",
    "react": "18.1.0",
    "react-native": "0.70.5",
    "expo-splash-screen": "~0.17.5"

Also tried with command

expo init my-project
cd my-project
expo start

Also attempted to add varying debug configurations to launch.json

Breakpoints remain unbound.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.