简体   繁体   中英

How to debug PyDev GAE project on localhost?

How does one simply print out a small string or inspect when running the local Google App Engine server out of Eclipse to debug a PyDev GAE project?

I tried solutions such as this , but I am not able to find the logs in the local admin console, nor are they appearing in my Eclipse console.

PyDev breakpoints do not seem to be hit either, even when I use "Debug As.."

What's the best way to go about this?

Add this

import pdb;pdb.set_trace()

just after the place you want breakpoints. Then use print statement from terminal to print whatever you what to print. You can also use pprint.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM