[Compiler]dev C + + single-step debugging

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.