我有一个 python venv,我在 VS Code 中运行以下代码:
text = "hello"
print(text)
我试图在text =“hello”处中断, 我的 launch.json 文件是:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Debug Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"stopOnEntry": true,
"justMyCode": false
},
]
}
VS Code 终端命令是:
c:\Programming\Python\VEnv_Python310\Scripts\python.exe' 'c:\Users\lautry\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '60718' '--' 'C:\Programming\Python\VEnv_Python310\test.py'
调试器没有在我的断点处停止。