【发布时间】:2018-02-16 12:56:11
【问题描述】:
我的问题可能看起来很简单,但是我有一个模块,我在这样的终端中启动:
python -m my_module.my_file
如何在 Visual Studio Code 中进行调试?
我的launch.json (documentation) 里有这个
"type": "python",
"request": "launch",
"pythonPath": "D:\\ProgramData\\Anaconda3\\envs\\simulec\\python.exe",
"args": [
"-m",
"my_module.my_file",
]
如果我没有设置 program 选项,或者如果我将其设置为 "",我会收到“文件不存在”错误。
我该如何解决这个问题?
【问题讨论】: