How can I debug WSGI Python web app?
-
I set up my Python & WSGI environment (Windows 7, Apache 2.2, Python 2.7, mod_wsgi + Aptana 3 Studio) and I am able to run simple web page using Python/WSGI, but I do not know how to debug it (except to look to apache_error.log file). Is there an easy way how to debug Pyhon/WSGI web app?
-
Answer:
Edit: Now thereâs https://github.com/Kozea/wdb, so use it instead. Use Werkzeug debugging middleware (http://werkzeug.pocoo.org/docs/debug/). It provides web-based interactive shell when an exception has been raised.
Hong Minhee ã» æ´ª æ°æ at Quora Visit the source
Other answers
Depends on which layer you are debugging. To debug the Python code, I really like the Wingware IDE. It isn't free, but for only $300 or so you get a first-rate debugger. If you can run it from the machine where the Python processes run it is extremely simple; with a little more work you can run it from one machine and debug code running on another machine. Wonderful productivity booster.
Chris Johnson
Related Q & A:
- How can I debug my php code?Best solution by Stack Overflow
- How do I make a python web program that is on a ubuntu server allow access to the server?Best solution by Yahoo! Answers
- How can I make a dynamic web page in PHP?Best solution by Yahoo! Answers
- How can I apply TIN through web?Best solution by Yahoo! Answers
- How can I block a specific web page?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.