Eclipse breakpoint for appengine

I have pydev on eclipse and would like to debug handlers. I put a breakpoint on the handler and started the project in debug mode. When I click on the hyperlink corresponding to the handler, the control does not return to the breakpoint. Am I missing something? The app for the google app in python is also launched.

+3
source share
2 answers

I use eclipse with PyDev with appengine and I am debugging all the time, it is quite possible!

What you need to do is run the program when debugging, but you must run dev_appserver in debugging, not the handler itself. The main module that you should debug is:

<path_to_gae>/dev_appserver.py

With program arguments:

--datastore_path=/tmp/myapp_datastore <your_app>

I hope this helps

+4
source

The easiest way to debug is to use the python built-in module pdband debug from the shell.

Just set the trace in the handler you want to debug.

import pdb
pdb.set_trace()

How U starts the server, from an eclipse or from a shell. If it's from the shell, how does eclipse know that you are even running the application,

You can use the user-friendly version pdb, ipdbwhich also includes user-friendly options, such as auto-complete.

0

Source: https://habr.com/ru/post/1710053/


All Articles