This project has moved and is read-only. For the latest updates, please go here.

PTVS debugging a Pyramid App

Jul 16, 2013 at 12:42 PM
I am trying to debug an existing pyramid app with PTVS using VS2013. (I have just installed the latest version)

I am using a virtual environment.

At the moment I am using Eclipse to develop but would love to be able to use PTVS as I have used the VS editor for many many years, and have been waiting for a few years now to see if this would be possible.

This thread
Seems to indicate that it is possible, but does not give me enough to go on.

In eclipse you run pserve (from the virtual env) pointing it at the pyramid project .ini file (e.g. development.ini), open up localhost on the correct port in your browser, place breakpoints in eclipse and they get hit.

Any help on how to set up my "New Project -> From existing code" which I have made for my pyramid app, so I can debug it would be fantastic.

Thanks in advance.
Jul 26, 2013 at 7:31 PM
Hi tropofy.

I was able to debug a Pyramid app using attach to process. Start pserve.exe from the command line and then from VS go to Debug->Attach to Process. Select python.exe from the list, make sure that Code Type is set to Python. Place breakpoint in your views, load the page in the browser and it should hit the breakpoint.

It would be nice to be able to just hit F5 and debug a Pyramid app. We'll look at this for a future release.

Jul 26, 2013 at 7:56 PM
I added a work item to improve the experience for Pyramid projects. Please vote for it!