VSCode Launch.json配置。

2021-04-16  本文已影响0人  冲云简

Launch.json属性

launch.json属性可帮助支持不同的调试器和调试方案。如上所述,一旦为属性指定了值,就可以使用IntelliSense(⌃Space)查看可用属性的列表type。
Launch.json必要属性
必须具有以下属性:

例如React-Native全局启动配置:

{
    // 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 Android",
            "cwd": "${workspaceFolder}",
            "type": "reactnative",
            "request": "launch",
            "platform": "android",
            "variant": "proDebug",
        },
        {
            "name": "Debug iOS",
            "cwd": "${workspaceFolder}",
            "type": "reactnative",
            "request": "launch",
            "platform": "ios",
            "target": "device",
            "variant": "Debug"
        }
    ]
}

参考官网https://code.visualstudio.com/docs/editor/debugging#_launch-configurations

上一篇下一篇

猜你喜欢

热点阅读