本文介紹了使用gdb在Qt Creator中調試時如何避免進入庫的源文件?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
如何配置 Qt Creator 和/或 gdb,以便在使用 Qt 庫調試我的程序時,調試器將避免進入 Qt 的源文件?
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?
推薦答案
您需要關閉 auto-solib-add.在正常的 gdb 提示符下,您可以輸入:
You need to turn off auto-solib-add. From a normal gdb prompt you would type:
(gdb) set auto-solib-add off
在 Qt Creator 中,在 Options->Debugger->Gdb 下,您可以指定 Gdb 啟動腳本.創建一個包含set auto-solib-add off"命令的文件,然后將 Gdb 啟動腳本設置為該文件.
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.
這篇關于使用gdb在Qt Creator中調試時如何避免進入庫的源文件?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!