0%

Pytest在VSCode里无法跟踪到第三方包里的代码

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