我不知道为什么vscode调试器不起作用。我尝试了所有方法,但断点仍然不起作用。有没有人遇到过类似的问题,并解决了它?
我的 lauch.json 文件仅供参考:
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config.python.pythonPath}",
"program": "${file}",
"cwd": "${workspaceRoot}",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput"
]
},
"stopOnEntry": true,将此设置为 false