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时,没有创建文件夹.
归档时间: |
|
查看次数: |
2497 次 |
最近记录: |