Debugging C programs with eclipse under Windows

Source: Internet
Author: User

I. Description of the Environment

  • Eclipse IDE for C + + developers version 4.4.0
  • MinGW gcc/g++ version 4.8.1;gdb version 7.6.1

Second, the Operation procedure

1. New Project

2. Compiling the source program

3. Debug settings

Run-->debug Configurations-->debugger, setting debugger targets

4, Start debugging

Third, the description

When you debug a C program under Windows Eclipse, there is no way to use printf and scanf: the console has no output. The reason is that the data that invokes the output of the function is buffered in the output file but is not updated on the console. This bug has not been solved very well so far.

One way is to use the MinGW command-line mode debugging, the condition is difficult-no graphical interface, but can be normal debugging. For more information, refer to Debugging Tools using MinGW under Windows Gdb.exe debugging C programs

Related Article

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.