How to avoid entering library's source files while debugging in Qt Creator with gdb?

前端 未结 4 970
走了就别回头了
走了就别回头了 2020-12-03 03:00

How can I configure Qt Creator and/or gdb so that while debugging my program using Qt libraries the debugger would avoid stepping into Qt\'s source files?

4条回答
  •  心在旅途
    2020-12-03 03:36

    You need to turn off auto-solib-add. From a normal gdb prompt you would type:

    (gdb) set auto-solib-add off
    

    In Qt Creator, under Options->Debugger->Gdb you can specify a Gdb startup script. Create a file with the "set auto-solib-add off" command in it and then set your Gdb startup script to that file.

提交回复
热议问题