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

android – React Native – 调试适配器进程意外终止,第1张

概述我正在尝试在Mac上的VS Code上设置react-native的调试环境. 这是launch.json: { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more informati 我正在尝试在Mac上的VS Code上设置react-native的调试环境.
这是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"        }    ]}

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

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

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


解决方法 检查一下:在.vsCode文件夹中,看看你的文件夹是否有.react.

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

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

总结

以上是内存溢出为你收集整理的android – React Native – 调试适配器进程意外终止全部内容,希望文章能够帮你解决android – React Native – 调试适配器进程意外终止所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1131108.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存