Debug Gae (Google App Engine) in wingide)

Source: Internet
Author: User

Print has been used for debugging... Very cold. In fact, you can directly debug Gae using breakpoint in wingide. The following describes two common methods:

1. In wingide, set dev_appserver.py to main debug file (right-click-set as main debug file), and set the running parameter: appname-D.

Then you can start running debugging. I set a shortcut similar to vs, so press F5, the console displays the service startup information, and then open http: // localhost: 8080/in the browser.CodeWhen there is a breakpoint, it will jump to the breakpoint and move the cursor over the variable to directly display the value of the current variable, which is very convenient!

2. After the-D parameter is set, the debugging information output through the logging module can be seen directly on the console. For example:

Import Logging
Logging. debug ( " Curpage is "   + Curpage)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.