Home » Support » Index of All Documentation » How-Tos » How-Tos for Web Development »
3.4. Using Wing IDE with the Google App Engine
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 the Google App Engine.
In order to debug Google App Engine applications, you will need Wing 3.1 beta3 or later, since earlier versions were missing some important functionality.
Configuring the Environment
In order for Wing to be able to work with Google App Engine code, you will need to create a project in Wing and set the main debug file to the dev_appserver.py in the Google SDK directory. To set dev_appserver.py as the main debug file, open the file in Wing and select Set Current as Main Debug File in the Debug menu.
Debugging Your Application
You can debug code running under the Google App Engine by selecting Start / Continue from the Debug menu (or use the run icon in the toolbar) and then specifying your application's directory as the run argument. For example, to run the guestbook demo that comes with the SDK, the run argument would be "${GOOGLE_APPENGINE_DIR}/demos/guestbook" where ${GOOGLE_APPENGINE_DIR} is replaced by the full pathname of the directory the SDK is installed in or an environment variable is set up with the pathname. The quotation marks are needed if the pathname contains a space.
Once the debugger is started, requests may be made with a web browser and breakpoints may be set in any Python file. For example, to break when the main page of the guestbook demo is generated, set a breakpoint in the method Mainpage.get in guestbook.py. You may edit the Python code for an application while the App Engine is running, and then reload to see the changes.
Related Documents
Wing IDE provides many other options and tools. For more information:
- Wing IDE Reference Manual, which describes Wing IDE in detail.
- Google App Engine home page, which provides links to documentation.
- Wing IDE Quickstart Guide which contains additional basic information about getting started with Wing IDE.
| « 3.3. Using Wing IDE with Plone | Table of Contents | 3.5. Using Wing IDE with Paste and Pylons » |
