我正在尝试添加带有本机android的调试器,但是它始终卡在白屏上,什么也没显示。 3至5分钟后,它会在android上显示以下消息:-
并在我的Visual Studio代码调试器控制台上显示:-
这是我的launch.json文件:-
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to packager",
"program": "${workspaceRoot}/.vscode/launchReactNative.js",
"type": "reactnative",
"request": "attach",
"sourceMaps": true,
"outDir": "${workspaceRoot}/.vscode/.react"
},
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
答案 0 :(得分:0)
为了远程调试JS,必须将移动设备和便携式计算机都放在同一网络中,然后找到便携式计算机的IP地址,然后使用以下命令