Annihilater / HexoBlogComments

HexoBlogComments
https://www.klause.cn
0 stars 0 forks source link

vscode 远程调试 linux 上的 python 代码 | 湮灭星空 #27

Open Annihilater opened 4 years ago

Annihilater commented 4 years ago

https://www.klause.cn/2019/04/14/markdown/vscode-yuan-cheng-diao-shi-linux-shang-de-python-dai-ma/

基本原理 微软为 python远程调试提供了一个叫做ptvsd的库,可以在这里获取。ptvsd作为一个debug server嵌入到目标 python进程中,然后使用 vscode作为debugger,主动连接到debug server上。