为什么Vimspector调试会话未初始化?

2024-07-04 07:48:22 发布

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

我配置了我的vimspector.json文件并希望启动调试器,但当我这样做时,它只是说它正在初始化调试器: enter image description here

这是我的Vimspector.json

{
    "configurations": {
    "test":{
                "adapter": "vscode-python",
                "configuration": {
                                "name": "this is a python test",
                                "type": "python",
                                "request": "launch",
                                "program":
"~/Documents/coding/python/terminal_game1/Terminal-Game/terminal_game.py"
                            }
            }
}
}

有人知道这意味着什么吗?我如何解决它


Tags: 文件nametestjsonadapteristypethis
2条回答

更新: 在我尝试使用debugpy-适配器之后,问题不再出现,调试器正确初始化。但是当尝试使用vscode-python适配器时,它仍然无法工作,即使我已通过成功运行的:VimspectorInstall vscode-python安装了它的适配器

适配器“vscode python”现在声明为遗留(不再受支持,请迁移您的配置),支持的python适配器现在为“debugpy”

所以只要在.vimspector.json中用debugpy替换vscode-python

这可以在插件的Github页面here上找到

相关问题 更多 >

    热门问题