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

2024-10-01 09:25:21 发布

您现在位置:Python中文网/ 问答频道 /正文

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

早些时候,我用platform.io安装了VSCode,但这是很久以前的事了。现在我想执行一个python脚本——但这不起作用——我得到了下图 形象

然后我选择了“open Launch.json”-参见相应的图片:

enter image description here

但我不知道该怎么办

/ / 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"

        }

    ]

}

嗯,我想我必须对VS代码进行更多的配置 顺便说一句,似乎是这样,我可以更新/&;将VScode表单版本1.52.xy升级到更新版本

更新:

enter image description here 我根据史蒂文斯的提示编辑-现在我要测试

我仍然在为设置而挣扎——我想我必须跳过并扔掉所有esp32和所有其他微控制器/平台的东西。。它们会引起很多问题

enter image description here


Tags: httpsorgdebugdocstypepageanacondavscode