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)