React Native - 调试适配器进程意外终止

Nit*_*ish 6 android ios react-native visual-studio-code

我正在尝试在Mac react-native上的VS Code上设置调试环境.这是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",
            "program": "${workspaceRoot}/.vscode/launchReactNative.js",
            "type": "reactnative",
            "request": "launch",
            "platform": "android",
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/.vscode/.react"
        },
        {
            "name": "Attach to packager",
            "program": "${workspaceRoot}/.vscode/launchReactNative.js",
            "type": "reactnative",
            "request": "attach",
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/.vscode/.react"
        },
        {
            "name": "Debug in Exponent",
            "program": "${workspaceRoot}/.vscode/launchReactNative.js",
            "type": "reactnative",
            "request": "launch",
            "platform": "exponent",
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/.vscode/.react"
        }
    ]
}  
Run Code Online (Sandbox Code Playgroud)

在调试时我收到错误 - 调试适配器进程意外终止.还有一个错误.

在此输入图像描述

我已经在Github上打开了一个问题,但还没有收到解决方案.

更新:回应ShaneG的回答,我正在添加项目方案和info.plist的截图

在此输入图像描述
在此输入图像描述

Fle*_*her 10

检查一下:在您的.vsCode文件夹中,查看您是否有.react文件夹.

如果不这样做,请尝试code .从项目文件夹的根目录运行.如果您尚未(键入shift-command-p并搜索Shell command: Install code command PATH),则需要从VSCode安装shell命令.

这是我的问题,无论出于什么原因,.react当我从聚光灯打开VSCode时,没有创建文件夹.