Skip to content

Gdb debugging session

kgabor edited this page Aug 19, 2014 · 3 revisions

Main ideas borrowed from here.

GDB session

gdb python
(gdb) run manage.py test autotest_services.WMS13GetMapReferenceableGridTestCase

Python support can be seen if Reading symbols from /home/vagrant/local/bin/python...done. present.

To activate some python support commands:

(gdb) python
> import sys
> sys.path.insert(0,"/path/to/libpython.py") 
#From the python build dir: Python-2.7.8/Tools/gdb/libpython.py
import libpython
> <ctrl-D>

now py-bt available for python backtrace, bt for C backtrace

I have not tested the python import gdb module that supposed to be capable of python code debugging by using its classes? (breakpoints in python code,etc.)

Clone this wiki locally