开发者

Debug a python script used with nmake

开发者 https://www.devze.com 2023-01-13 09:11 出处:网络
I have a Visual Studio project which uses nmake to call a Python file for clean, build, or rebuild. For ex. in VS project properties->Configuration Properties->NMake, for the Build Command Line I woul

I have a Visual Studio project which uses nmake to call a Python file for clean, build, or rebuild. For ex. in VS project properties->Configuration Properties->NMake, for the Build Command Line I would have

....\blah\tools\myBuildFile.py build -arg1 -arg2

There a开发者_C百科re several python files used with lots of variables and routines so I would like a tool which I could use to step through them. Can anyone suggest a plug-in to Visual Studio which I could use to debug the Python make files?

Thanks


  1. Install winpdb
  2. Change your command to: ...\blah\winpdb.py ...\blah\tools\myBuildFile.py build -arg1 -arg2
0

精彩评论

暂无评论...
验证码 换一张
取 消