"tuyun" <[EMAIL PROTECTED]> wrote

I'm not familiar with python. I wrote a C library, and some body used the library in his python program, and found a bug ...

So how can I make a breakpoint for a suspect function in my C library when he is "running in " a python program.

Not cleanly. I think the easiest way is to write the simplest C driver program that you can that mimics what the Python code does. See if you can replicate the fault condition and debug it there. Othewise you could spend a lot of time and end up changing the runtime
environment so much its no longer valid!

Python works well with working C code but debugging C from inside Python is not so easy. You can test it (does it work or not) easily but you can't step into the C code from the Python debugger and the C debugger won't play easily with Python.

HTH

Alan G.

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to