简体   繁体   中英

ReactNative - Expo - Debugging with breakpoints

I have issues to start a debugger. I am using VS Code and I installed the react native tools. My launch.json looks like this

    "version": "0.2.0",
"configurations": [
    {
        "name": "Attach to packager",
        "request": "attach",
        "type": "reactnative",
        "cwd": "${workspaceFolder}",
        "port": 19001
    }
],

}

When I click on Debug Remote JS within my IOS simulator, I am redirected to http://localhost:19000/debugger-ui/

Here, it says Status: Disconnected from proxy. Attempting reconnection. Is node server running?

Anyone an idea?

Have you tried adding the following to vscode settings file:

"react-native-packger.port": 19000

I found the answer in another post here :

Having said that, I am in the exact same boat as you and wanted to know if either you were able to fix the issue?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM