Question

I am debugging a problem in Django with Pydev.
I can set breakpoint in my django project code with out a problem.
However I can't set breakpoints in the Django library source code (in site-packages).

The PyDev debugger user interface in this case simply does nothing when I click to set the breakpoint and does not break at that location when I run the debugger.

Am I missing some PyDev configuration? In other debuggers I have used, this behavior indicates a problem relating the debug information with the source code. Any ideas on next steps would be a help.

I also have the site-packages configured in PyDev to be in my PYTHONPATH

I am using Eclipse on Max OS X if that helps.

Thanks

Was it helpful?

Solution

Have you imported the Django source as a project? To do that you just create a new PyDev project and set it's location to the Django source folder.

OTHER TIPS

Hey, this is timely! Eric Moritz just announced the release of an interesting new way to debug views using pdb called django-viewtools.

You might try instead the Python debugger pdb in this instance.

This is a helpful link describing it: http://www.ferg.org/papers/debugging_in_python.html

PyDev 1.5.5 seems to have an issue with Eclipse. Uninstall 1.5.5 and install the 1.5.4 version

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top