One, dev C + + Debug Crash solution
1. Click "Tools, Compile Options".
2. Select the "Compiler" tab, tick "Add the following command at compile time" and enter "-g3".
3. Select the "Code Generation/Optimization" tab, select the "Connectors" tab and "Generate Debug Information" to "Yes".
4, click OK, recompile needs to debug the program, you can run a single step.
Second, single-step debugging
1, set the breakpoint: Click near the line number, how to call the row number, go to the end of the article.
2. Click the "Debug" button.
You can also find it in "run":
At this point the interface is like this:
The blue side of the rampage has a blue arrow that represents the current stepping position. On the left is the variable window, which you can right-click to add or add to the console at the bottom left. The bottom right is what, the author is not very clear "looks good high-end appearance ah ...", online there is said that Dev is called gdb debugging, this seems to be called the command line. "Don't know if it's right, dig a hole first."
Attached: About compiler options
Click on "Tools--Compiler Options".
The following interface appears:
So you can DIY, to call up the line number to see here:
[Compiler]dev C + + single-step debugging