Debugging Demo
A simple project to be used to demonstrate basic debugging in Qt Creator.
- Open project in QtC
- Set a breakpoint in the
push_back
loop. - Run the project in debug.
- Open
my_vec
in the memory window. Set the display value for data to array of length 10. - Use 'Step Over' for a few iterations to show values updating.
- Use 'Step Into' to enter the
push_back()
method. Then come back to main. - Right click on the breakpoint to disable it.
- Set a new breakpoint at the top of the print loop.
- Use 'Continue' to advance to the new breakpoint.
- Use 'Continue' to finish the program.