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.
Thread overview | |||||
---|---|---|---|---|---|
|
February 09, 2023 How to debug/set breakpoint a dynamic library.so ? | ||||
---|---|---|---|---|
| ||||
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. |
February 09, 2023 Re: How to debug/set breakpoint a dynamic library.so ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | 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
|
February 10, 2023 Re: How to debug/set breakpoint a dynamic library.so ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On Thursday, 9 February 2023 at 19:26:59 UTC, Ali Çehreli wrote:
> 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
Thank you, it worked!
All the best wishes for the recent earthquake in Turkey.
|