Can I prevent debugger from stepping into Boost or STL header files?

后端 未结 4 2152
生来不讨喜
生来不讨喜 2020-12-08 21:28

I\'m using Qt Creator with gdb to debug my C++ code on a Linux Platform. Whenever I use a boost::shared_ptr or the like, the debugger steps into the header fil

4条回答
  •  眼角桃花
    2020-12-08 21:54

    From https://stackoverflow.com/a/31629136/5155476:

    I had this same need. I extended the 'skip' command in gdb to support a new type 'dir'. I can now do this in gdb:

    skip dir /usr
    

    and then I'm never stopped in any of my 3rd party headers.

    Here's a webpage w/ this info + the patch if it helps anyone: info & patch to skip directories in GDB

提交回复
热议问题