Python is a debugging application

I am trying to fix errors from gedit plugins. Gedit uses C, but some of its plugins are in Python. My computer is old and I can not start the IDE. I read about PDB (Python Debugger), but I cannot call the plugin directly from PDB. Is it possible to set breakpoints in the gedit plugin, run gedit, and then use PDB for debugging?

+3
source share
2 answers

You can try to edit the gedit plugins you want to debug, and putting

import pdb; pdb.set_trace()

and that should break into the debugger. You may need to run gedit from the command line instead of the GUI so that it has a terminal to run pdb.

+4
source

AFAIK gedit python, WINPDB http://winpdb.org/, gEdit

0

All Articles