pdb
won't allow you to debug modules written in C. You can however use gdb
to debug errors you might be encountering in C code.
To launch a Python script using gdb
you can use the following command:
gdb python
and then to execute your script:
(gdb) run <myscript>.py