我正在尝试在Mac上的VS Code上设置react-native的调试环境.
这是launch.json:
这是launch.json:
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information,visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0","configurations": [ { "name": "Debug iOS","program": "${workspaceRoot}/.vscode/launchReactNative.js","type": "reactnative","request": "launch","platform": "ios","sourceMaps": true,"outDir": "${workspaceRoot}/.vscode/.react","target": "simulator" },{ "name": "Debug Android","platform": "android","outDir": "${workspaceRoot}/.vscode/.react" },{ "name": "Attach to packager","request": "attach",{ "name": "Debug in Exponent","platform": "exponent","outDir": "${workspaceRoot}/.vscode/.react" } ] }
在调试时我收到错误 – 调试适配器进程意外终止.还有一个错误.
更新:回应ShaneG的回答,我正在添加项目方案和info.plist的截图