Install of Bloodshed Dev-C++: A Step by Step Guide.: Documentation: Ian Cowell
Install of Bloodshed Dev-C++: A Step by Step Guide.: Documentation: Ian Cowell
INSTALLING DEV-C++
1. Double Click on the file devcpp-4.9.9.2_setup.exe to start the install
Click OK
Click Next
Click Install
Click Yes
Click Finish
Click OK
Click Next
Click Next
Click Next
Click OK
CUSTOMISATION.
Setup Compile Options
In the menu select
Tools Compiler Options
-g
Click on Settings
Click on Linker
Click on No for the Generate debugging information entry and select Yes from the drop down
box at the right.
Click Ok
And the configuration is complete.
Click OK
Click Save
You should have:
Click Save
The program compiles
Click Close
Make sure that the command window is selected (click in the title bar)
And use say the space key.
The command window closes and the program exits.
This tells the debug system to stop execution before this line (where the variable i is created)
This breakpoint line is highlighted in red and the breakpoint is the icon red circle with the green
tick. You can toggle the breakpoint on and off by clicking on that icon position.
and click OK
Do the same for variable j
Notice the values in the Debug tab at the left of the screen.
I=2
J = 35
You may get different values. The values have not been set as yet and so are really undefined.
Click on the Next Step in the Debug pane near the bottom.
The statement i = 0 has been executed and next instruction to be executed is shown by the Blue
highlight. The watch value for i is now 0.
Click on Next Step and the value for j is set.
Click on the Project1.exe window title bar and press the Enter key.
Click on the Breakpoint icon (Red Circle with Green Tick) to toggle the breakpoint to off.
Click on Debug
This indicates that the program ran until the system("PAUSE") was executed.
Again click on the Project1.exe window title bar and press the Enter key to let the program finish.
This is the end of the exercise.