Debug a python script used with nmake

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 are 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

Answers


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

Need Your Help

How to parse namespaces using untangle

perl python-2.7 xml-parsing

I have been messing around in Python using the Untangle library (https://untangle.readthedocs.org/en/latest/#) for easier calling of XML variables. It is pretty straight forward to me except when t...