- Application Development with Qt Creator(Second Edition)
- Ray Rischpater
- 191字
- 2021-08-05 17:05:20
A review – running and debugging your application
You'll spend a lot of time editing, compiling, and debugging your code in Qt Creator, so it's wise to remember the following basics:
- The arrow key runs your application without the debugger; to debug your application, choose the arrow key with the bug icon on it.
- You can switch between the Editor view and the Debug view of your application by clicking on the Edit or Debug view choice on the left-hand side; if you debug your application, Qt Creator will enter the Debug view automatically.
- There's more to breakpoints than just stopping at a line of code! Use data breakpoints to pin down weird bugs that occur only sometimes or to quickly skip over the first bazillion items of a large loop.
- The variable pane lets you see more than just the contents of variables; you can also add expressions composed of several variables and arithmetic or view arbitrary memory locations.
- Want to hack around a bug during a debugging session? You can change the values of variables in the variable pane and continue running, changing the program's state as you go.
推薦閱讀
- 數(shù)據(jù)通信網(wǎng)絡(luò)實(shí)踐:基礎(chǔ)知識(shí)與交換機(jī)技術(shù)
- 連接未來(lái):從古登堡到谷歌的網(wǎng)絡(luò)革命
- SOA用戶(hù)指南
- C++黑客編程揭秘與防范
- Getting Started with WebRTC
- 計(jì)算機(jī)網(wǎng)絡(luò)與通信(第2版)
- Wireshark網(wǎng)絡(luò)分析就這么簡(jiǎn)單
- 城市治理一網(wǎng)統(tǒng)管
- IPv6網(wǎng)絡(luò)切片:使能千行百業(yè)新體驗(yàn)
- 物聯(lián)網(wǎng)工程概論
- 5G技術(shù)核心與增強(qiáng):從R15到R17
- Web用戶(hù)查詢(xún)?nèi)罩就诰蚺c應(yīng)用
- 網(wǎng)絡(luò)安全之道
- 工業(yè)以太網(wǎng)技術(shù):AFDX/TTE網(wǎng)絡(luò)原理、接口、互連與安全
- 區(qū)塊鏈社區(qū)運(yùn)營(yíng)手冊(cè)