Debug Django using PTVS (Python Tools for Visual Studio)

I started learning Python and Django about 1 month ago and now trying apply it to a small web site.

Python is simple and good to use, but debugging is not as easy as using some advanced IDEs such as Visual Studio, Eclipse etc. 

In Python side, there've IDEs like PyCharm, WingIDE can debug Python easily.

In Java side, Eclipse with PyDev is very powerfull.

Now with PTVS, Visual Studio 2010 can also very easily to support Python and Django debug.

 

The key point to make Django debug work is to set the script running arguments as: "runserver --noreload". The "--noreload" paramters is important, if it's missing, the Visual Studio will then can't attach the debugger correclty and then can't hit your breakpoints.

posted @ 2012-04-06 11:30  029xue  阅读(549)  评论(0编辑  收藏  举报