Home » Support » Index of All Documentation » How-Tos » How-Tos for Web Development »

Using Wing IDE with Paste and Pylons

Wing IDE is an integrated development environment that can be used to write, test, and debug Python code that is written for Paste and Pylons (which is based on Paste). Wing provides auto-completion, call tips, a powerful debugger, and many other features that help you write, navigate, and understand Python code.

For more information on Wing IDE see the product overview. If you do not already have Wing IDE installed, download a free trial now. To get started using Wing, refer to the tutorial in the Help menu in Wing and/or the Wing IDE Quickstart Guide.

In order to debug Pylons and Paste applications, you will need Wing 3.0 or later, since earlier versions did not support multi-threaded debugging.

Installing Paste and/or Pylons

The Pylons website and Paste website provide complete instructions for installing Pylons or Paste

Debugging in Wing IDE

Paste and Pylons can be set to run in an environment that spawns and automatically relaunches a sub-process for servicing web requests. This is used to automatically restart the server if for some reason it crashes. However, this does not work with Wing's debugger since the debugger has no way to cause the sub-process to be debugged when it is started by the main process.

To avoid this, do not specify the --reload flag for Paste. Place the following in a file that you add to your project and set as the main debug file:

from paste.script.serve import ServeCommand

This may vary somewhat, as necessary for your application.

Debugging Mako Templates

Wing cannot debug Mako templates directly, but it is possible to debug them through the .py translation (stored in data/templates in the Pylon tree).

Related Documents

Wing IDE provides many other options and tools. For more information:

Using Wing IDE with Paste and Pylons