[英]ReactNative - Expo - Debugging with breakpoints
I have issues to start a debugger.我有启动调试器的问题。 I am using VS Code and I installed the react native tools.我正在使用 VS Code 并安装了 react native 工具。 My launch.json looks like this我的 launch.json 看起来像这样
"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/当我在 IOS 模拟器中单击调试远程 JS 时,我被重定向到 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:您是否尝试将以下内容添加到 vscode 设置文件中:
"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?话虽如此,我和你在同一条船上,想知道你是否能够解决这个问题?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.