Skip to content

Expo debug stuck in "waiting for device to connect" step. #265

@amacinho

Description

@amacinho

Description of the bug

Expo debug does not start in VSCode. It gets over "waiting for bundler on 127.0.0.1:8081 step successfully, but gets stuck waiting for a device to connect.

To Reproduce

  1. Run Expo debug on VSCode. ctrl+shift+P Expo: Debug expo app (also tried using a launch configuration)
  2. Confirm it's in "waiting for bundler on 127.0.0.1:8081" step.
  3. Go to terminal. Run npx expo start.
  4. Go back to VSCode, confirm it's now "waiting for device to connect"
  5. Go back to terminal, launch Expo app on my phone using the QR code.
  6. The app loads, I can interact with it. But Expo Debug is still stuck.

Expected behavior

Debugging should start.

Actual behavior

Got stuck.

Additional context

Stuck:
image

launch.json configs I tried:
{
"type": "expo",
"request": "attach",
"name": "Debug Expo Go",
"projectRoot": "${workspaceFolder}/client",
"bundlerPort": "8081",
"bundlerHost": "127.0.0.1",
"trace": true,
"enableTurboSourcemaps": false
}
or
{
"type": "expo",
"request": "attach",
"name": "Debug Expo Go",
"projectRoot": "${workspaceFolder}/client",
"bundlerPort": "8081",
"bundlerHost": "127.0.0.1"
},

Expo ~52.0.17
Expo app on iPhone:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions