Breakpoints is set not yet bound every time app launches. From the previous thread, I tried resetting the breakpoint, still does not work. Downgrading to VSCode 1.19 does not work. VSCode 1.24 also does not work.
Breakpoints be set or at least the workaround of resetting a breakpoint to work.
Hi @VanessaChu,
I tested with the latest extension and vscode versions, all works fine for me.
Could you please provide a bit more info:
react-native init project
Thanks!
This is my launch configuration:
{
"name": "Debug iOS",
"program": "${workspaceRoot}/.vscode/launchReactNative.js",
"type": "reactnative",
"request": "launch",
"platform": "ios",
"sourceMaps": true,
"target": "iPhone 6 Plus",
"outDir": "${workspaceRoot}/.vscode/.react"
}
Same issue on both simulator and real device.
Launch configuration for real device:
{
"name": "Debug iOS Device",
"program": "${workspaceRoot}/.vscode/launchReactNative.js",
"type": "reactnative",
"request": "launch",
"platform": "ios",
"target": "device",
"sourceMaps": true,
"outDir": "${workspaceRoot}/.vscode/.react"
}
I got the same issue here, have updated to the latest vsCode 1.24.1 and still with no luck. It can run "Debug iOS" and start the app but when I select Debug Remote JS, it always opens the chrome dev tool and never stops at the break point on vsCode. Please check my config detail.
{
"name": "Debug iOS",
"program": "${workspaceRoot}/.vscode/launchReactNative.js",
"type": "reactnative",
"request": "launch",
"platform": "ios",
"sourceMaps": true,
"outDir": "${workspaceRoot}/.vscode/.react"
},
I see why now. "Debug iOS" simply does not work when you create project with create-react-native-app cause it will run app on the expo client which will listen to different port other than 8081. you have to eject your project to make it run solely on the simulator so that it will listen to the same port as VSCode.
Does anyone knows a way to change the listening port on "Debug iOS"?
@gagaJay
You can attach to running CRNA app with this configuration:
{
"name": "Attach to packager",
"program": "${workspaceRoot}/.vscode/launchReactNative.js",
"type": "reactnative",
"request": "attach",
"sourceMaps": true,
"port": "19001",
"outDir": "${workspaceRoot}/.vscode/.react"
}
@VanessaChu
Could you please paste following outputs here:
PASTE OUTPUT HERE
PASTE OUTPUT HERE
PASTE OUTPUT HERE
PASTE OUTPUT HERE
@VanessaChu just a friendly ping
Hi guys, the same happening to me using vscode 1.24.1.

Hi @delciopolanco,
This extension provide debugger for React Native apps.
As I can see your project is angular and you are using Debugger for Chrome.
I'm sure that https://github.com/Microsoft/vscode-chrome-debug is a better place to open your issue.
Thanks!
My Bad!!!
I cant' reproduce this.
Closing for now. Feel free to reopen if you still faced this issue.
Thanks!
Most helpful comment
Hi guys, the same happening to me using vscode 1.24.1.