python - How do I use PDB with App Engine? -


I am building a basic site with the Google version of Google App Engine (ver 1.9.14.1225) and I Can determine how my template variables are not being provided, how to enter a debugger like this.

The app engine says to use the documentation: Import PDB; Pdb.set_trace ();

However, when I put PDB in my code, then threw this error:
if self.quitting: BdbQuit increased

How do I Let PDB debugger enter?

Error 2014-10-30 14:25: 16,768 webpages 2.py.1552] Traceback (most recent call final): File "/ User / Brian / Desktop / GoogleAppEngineLauncher.app / Content / resource / GoogleAppEngine-default.bundle / content / resource / google_appengine / lib / webapp2-2.5 / webapp2.py ", line 1529, __call__ rv = self.router.dispatch (request, response) file" / user / Brian /Desktop/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2-2.5.2/webapp2.py ", line 1529, __call__ RV In = self.router.dispatch (request, response), file "/Users/Bryan/Desktop/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2-2.5.2/ Webapp2.py ", the return path in line 1278 default_dispatcher.handler_adapter (request, response) file" / User / Brian / Desktop / GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appen engine / lib / Webapp2-2.5.2 / webapp2.py ", line 1102, __call__ return handler.dispatch () file" /Users/Bryan/Desktop/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/Google_appengine /lib/webapp2-2.5.2/webapp2.py ", line 570, remittance return In the file (* args, ** kwargs) file "/Users/Bryan/Desktop/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/content/product/google_appengine/lib/webdapp2-2.5/weapapp2.py" In line 570, send withdrawal method (* args, ** kwargs) file "/ user / brian / work / GoogleAppEngine /dermalfillersecrets/main.py", line 94, get self.response.write (template.render (template_values) ) File "/ user / brian / work / GoogleAppEngine / dermalfillersecrets / main.py", line 94, get self.response.write (template.render (template_values), file "/System/Library/Frameworks/Python.framework /Versions/2.7/lib/python2.7/bdb.py ", La No 49 trace_dispatch return self.quitting (in the quadrilateral) file "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bdb.py", in Line 68, dispatch_line in self.dispatch_line: Extra BdbQuit

osX 10.9.5

This PDB and Mac With "Star" to add more weight to it and comment that you are still seeing this issue.

It seems that this is the reason because PDB uses stdin / stdout for i / o and Mac dev_server does not work with it

It seems that should work .

Looks like I / O here, I do not have Mac to test, where you can re-direct but can be helpful.

One socket is not certain that it will work, but thought that I would just include it in the case.


Comments