I’m new to Python and am playing around with Python Tools for Visual Studio but I can’t seem to find a way to use the VS debugger on .py files. It seems like the files have to be compiled to .pyc of part of a VS Solution to use the debugger.
This is a bummer because I would like to write standalone .py scripts in a text editor and use the VS debugger as needed.
Am I missing something? Is there a way to do this?
Instead of trying to use Visual Studio for debugging, consider the pdb module: http://aymanh.com/python-debugging-techniques
Edit:
I spent some time playing around with Attach Process, but couldn’t get it to work. My suggestion: have the .py file in a VS solution, edit with your favorite text editor, then switch back to VS, and in the Solution Explorer tab, right click on the file and select Start With Debugging.