Re: [Tutor] Debug C library in python program

2008-04-28 Thread Dave Kuhlman
On Mon, Apr 28, 2008 at 07:03:16AM +, tuyun wrote: > > Hi > May be this is a basic question, but I havent find answer through google :( > 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 of my library, I want to > figu

Re: [Tutor] Debug C library in python program

2008-04-28 Thread Alan Gauld
"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 t

Re: [Tutor] Debug C library in python program

2008-04-28 Thread Chris Fuller
I expect if you take that route, you would have to compile the Python interpreter with debugging enabled, and then run that with gdb. A better idea might be to recompile your library to produce debugging output at strategic locations, and then output it to the console or a socket to some logg

[Tutor] Debug C library in python program

2008-04-28 Thread tuyun
Hi May be this is a basic question, but I havent find answer through google :( 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 of my library, I want to figure out what's wrong in my library. So how can I make a breakpoint f