官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 龙胜| 神木县| 东城区| 广河县| 聂荣县| 景泰县| 宜兰县| 阿克陶县| 邢台市| 芷江| 新龙县| 井冈山市| 赤城县| 威宁| 南安市| 吴桥县| 黔江区| 昌黎县| 商丘市| 师宗县| 鲁甸县| 普兰店市| 宝鸡市| 沁源县| 盱眙县| 阳江市| 离岛区| 和田市| 阿图什市| 台湾省| 宁国市| 灯塔市| 喀喇沁旗| 睢宁县| 邓州市| 阿坝| 曲水县| 班玛县| 东台市| 探索| 延庆县|