VSCode 配置问题 - 关于 Anaconda :: 来自系统的调试投诉

VSCode configuation issues - on Anaconda :: debugging-complaints from the system

在 Anaconda 上启动 VSCode 时,我只是 运行 遇到了一些问题。 注意: i 运行 VsCode 1.52.1 - 在 Win 10 上的 Anaconda 中

早些时候,我 VSCode 安装了 platform.io - 但这是很久以前的事了。现在我想执行一个 python 脚本 - 但这没有用 - 我得到了下图 图片

然后我选择了“打开 Launch.json” - 查看相应的图像:

但我不知道该做什么?!

/ / PIO Unified Debugger


//

// Documentation: https://docs.platformio.org/page/plus/debugging.html

// Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html

{

    "version": "0.2.0",

    "configurations": [

        {

            "type": "platformio-debug",

            "request": "launch",

            "name": "PIO Debug",

            "executable": "c:/Users/tarifa/Documents/PlatformIO/Projects/ESP/.pio/build/esp32dev/firmware.elf",

            "projectEnvName": "esp32dev",

            "toolchainBinDir": "C:/Users/tarifa/.platformio/packages/toolchain-xtensa32/bin",

            "internalConsoleOptions": "openOnSessionStart",

            "preLaunchTask": {

                "type": "PlatformIO",

                "task": "Pre-Debug"

            }

        },

        {

            "type": "platformio-debug",

            "request": "launch",

            "name": "PIO Debug (skip Pre-Debug)",

            "executable": "c:/Users/tarifa/Documents/PlatformIO/Projects/ESP/.pio/build/esp32dev/firmware.elf",

            "projectEnvName": "esp32dev",

            "toolchainBinDir": "C:/Users/tarifa/.platformio/packages/toolchain-xtensa32/bin",

            "internalConsoleOptions": "openOnSessionStart"

        }

    ]

}

好吧,我想我必须对 VSCode 进行更多配置 顺便提一句。似乎是这样,我可以更新/&升级 VScode 从版本 1.52.xy 到更新的版本!?

更新:

我根据 stevents 的提示编辑 - 现在我要测试了。

我仍然在为这些设置而苦恼——我想我必须跳过并扔掉所有的 esp32 和所有其他微控制器/platformio-东西。它们会导致很多问题

你需要注释preLaunchTask:

    "preLaunchTask": {

        "type": "PlatformIO",

        "task": "Pre-Debug"

    }