How to debug Web2py applications?


Is it possible? By debug I mean setting breakpoints, inspect values and advance step by step.


You can also use Visual Studio 2010. Here's how:

  • Download and install Python Tools for Visual Studio.
  • Create a new project from existing code (File > New > Project From Existing Code...)
  • Specify your web2py folder and use the defaults.
  • Right-click on and choose Set as Startup File.
  • Set breakpoints and hit F5 (run) or right-click on and choose Start with Debugging.

This is a nice setup if you already use visual studio.

As Carl stated, it is as easy as:

  1. Installing PyDev in Eclipse
  2. Right Click on your Web2Py project, selecting Debug As > Python Run
  3. Selecting as the file to run

No other plugins or downloads are needed.

By : mudface

I'm debugging web2py applications with Eclipse and PyDev. Here is an article:

This video can help you solving your question :)
By: admin