Skip to Content
Hands-On GUI Programming with C++ and Qt5
book

Hands-On GUI Programming with C++ and Qt5

by Lee Zhi Eng
April 2018
Intermediate to advanced
404 pages
8h 27m
English
Packt Publishing
Content preview from Hands-On GUI Programming with C++ and Qt5

Identifying the problem

The most important thing when it comes to debugging your program, regardless of programming language or platform, is to know which part of your code is causing the problem. There are several ways you can identify your problematic code:

  • Ask the user at which point the bug happened; for example, which button was pressed, what were the steps leading to the crash, and so on.
  • Comment away part of your code, then build and run the program again to check whether the problem still occurs or not. If it still does, continue to comment out more code until you find the problematic line of code.
  • Use the built-in debugger to check for the variable changes within your targeted function by setting a data breakpoint. You can easily ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ GUI Programming with Qt 4

C++ GUI Programming with Qt 4

Jasmin Blanchette, Mark Summerfield

Publisher Resources

ISBN: 9781788397827Supplemental Content