How to debug/set breakpoint a dynamic library.so ?

Ali Çehreli acehreli at yahoo.com
Thu Feb 9 19:26:59 UTC 2023


On 2/9/23 06:00, mw wrote:
> The dynamic library.so is built from D (with pyd), and invoked from Python.
> 
> I'm just wondering How to debug/set breakpoint a dynamic library.so ?
> 
> Can someone give an example?
> 
> Thanks.

I may be totally off on this but I think it is as simple as the following:

   gdb --args your_python_program

Once inside, set a break point on the dynamic library symbol. Then run.

Ali



More information about the Digitalmars-d-learn mailing list