How to runtime debug shared libraries?

后端 未结 6 1643
时光说笑
时光说笑 2020-12-07 16:52

Can anyone tell me how to do runtime debugging on shared libraries?

I need to runtime-debug a function in my shared library, but its called by another program. How c

6条回答
  •  日久生厌
    2020-12-07 17:19

    I remember testing shared libraries by creating a mock app that used it. If you are willing to do a lot of work, you could create a second, mock shared library that just collects information about how the library is being used by the third party app, and then have your mock app replay that information.

    Of course, never doubt the power of well placed printf and fprintf calls.

提交回复
热议问题