![]() ![]() An yellow arrow (as shown in the diagram) appears and points at the main(), indicating this is the next statement to be executed. The program begins execution but suspends its execution at the breakpoint, i.e., main(). Step 2: Start Debuggingįrom "Debug" menu, select "Start (F8)". A breakpoint suspends program execution for you to examine the internal states. A red circle appears indicating a breakpoint has been set at that line. Set an initial breakpoint at main() function by clicking on the "left-margin" (right-side of the line number) of the line containing main(). Let's use the graphic debugger to debug the program. ![]() Run the program and observe the output produced: Int factorial = 1 // Initialize the product to 1Ĭout << "The Factorial of " << n << " is " << factorial << endl
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |