I have to call a python module from a C program, and I don´t know how to debug this python code. main { ...... co = (PyCodeObject *)v; v = PyEval_EvalCode(co, d, d); } Where co it is a buffer with the python code of a python program: test.py import led led.Setup(1)