Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 776
Piotr Dobrogost Avatar asked Sep 08 '25 17:09

Piotr Dobrogost


1 Answers

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.

like image 97
atomice Avatar answered Sep 10 '25 07:09

atomice