在launch.json
文件里关闭justMyCode
1 2 3 4 5 6 7 8 9
| { "name": "Python: Debug Tests", "type": "python", "request": "launch", "program": "${file}", "purpose": ["debug-test"], "console": "integratedTerminal", "justMyCode": false }
|
https://code.visualstudio.com/docs/python/testing