microsoft / vscode-python-debugger

Python debugger (debugpy) extension for VS Code.
https://marketplace.visualstudio.com/items?itemName=ms-python.debugpy
MIT License
40 stars 17 forks source link

Cannot read properties of undefined (reading 'resolveEnvironment') #333

Open hk0624 opened 2 months ago

hk0624 commented 2 months ago

VSCode 1.88.1 When Press F5 or Ctrl+F5,it pops up a message "Cannot read properties of undefined (reading 'resolveEnvironment') " and stop debug.

blueardour commented 1 month ago

same error on 1.83.1

JianxiangL commented 1 month ago

same error on 1.89.1

版本: 1.89.1 (user setup) 提交: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 日期: 2024-05-07T05:13:33.891Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.22631

paulacamargo25 commented 1 month ago

Thanks for the bug report, could you share your configuration in the launch.json file? Thanks

JianxiangL commented 1 week ago

感谢您的错误报告,您能否在文件中分享您的配置?谢谢launch.json

{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Python: 当前文件", "type": "python", "request": "launch", "program": "${file}", "console": "integratedTerminal" } ] } 抱歉之前忽略了您的回复,这个问题我已经解决,方法就是重新安装配置了一下conda虚拟环境。