Break in C++ shared library in gdb (or lldb) from python

Hi, I’m currently working on TVM to add new operator and custom backend. I’m wondering if we could debug a C++ shared library in gdb or any other debugger from python since TVM provides most their interface throughout python language. I tried gdb --args python-dbg {my-script} but it cannot stop even I set a breakpoint in some shared library, which is actually called by the executed script.

Is there anyone who use any debugger to debug a shared library called by python script??