| 1234567891011121314151617181920 |
- {
- "version": "0.2.0",
- "configurations": [
- {
- "name": "Python 调试程序: 当前文件(lqagentplatform)",
- "type": "debugpy",
- "request": "launch",
- "program": "${file}",
- "console": "integratedTerminal",
- // 关键:指定 lqagentplatform 环境的 Python 解释器路径
- "python": "D:\\Program Files\\Anaconda\\envs\\lqagentplatform\\python.exe",
- // 可选:添加环境变量增强兼容性(避免依赖找不到)
- "env": {
- "PATH": "${env:PATH};D:\\Program Files\\Anaconda\\envs\\lqagentplatform\\Scripts"
- },
- // 自动激活 Conda 环境(无需手动在终端激活)
- "preLaunchTask": "activate_lqagentplatform"
- }
- ]
- }
|