0

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?

Community
  • 1
  • 1
LazerSharks
  • 3,089
  • 4
  • 42
  • 67
  • Nevermind.... I have no idea why, but after trying to run it under Debug mode a few more times the Debugging perspective finally popped up... I may close this soon. – LazerSharks Jun 03 '15 at 04:52

1 Answers1

0

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.

Rohit Barnwal
  • 482
  • 6
  • 19
  • Arghh, please don't... the PyDev visual debugger is much nicer... if you want programatic breakpoints in PyDev, you can use the remote debugger: http://pydev.org/manual_adv_remote_debugger.html (import pydevd;pydevd.settrace() -- if you're inside PyDev you can do pydevd|Ctrl+Space for a template completion which will add that along with the sys.path addition to make sure it's found). – Fabio Zadrozny Jun 06 '15 at 23:01