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

3.5. Using Wing IDE with Paste and Pylons

Wing IDE is an integrated development environment for the Python programming language. Wing can be used to speed up the process of writing and debugging code that is written for Paste and Pylons (which is based on Paste).

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.

Note: This documentcontains information obtained from users of Wing IDE. Its accuracy has not yet been verified by Wingware.

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
ServeCommand("serve").run(["development.ini"])

This may vary somewhat, as necessary for your application.

Related Documents

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

« 3.4. Using Wing IDE with the Google App EngineTable of Contents3.6. Using Wing IDE with Webware »