Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Debug build not working as expected(debug build produces exactly the same output as the regular build.)
Debug build not working as expected [message #1848184] Wed, 24 November 2021 10:08 Go to next message
Peter Loosemore is currently offline Peter LoosemoreFriend
Messages: 1
Registered: November 2021
Junior Member
I am an experienced C++ developer but an Eclipse newbie. For my project I have a debug build and a regular build (both generated for me) but both produce exactly the same output and the debugger cannot find the sources or show any variables. The only thing I can do is set breakpoints.

What am I missing?
Re: Debug build not working as expected [message #1848194 is a reply to message #1848184] Wed, 24 November 2021 15:42 Go to previous message
David VavraFriend
Messages: 1430
Registered: October 2012
Senior Member
Well, what you've actually done for one.

If you're new to Eclipse you should understand how Eclipse works.
Eclipse is not an IDE in the same sense as MSVC is an IDE which only has
one goal: produce Windows applications.

Eclipse is really a fancy editor. It doesn't compile or link your programs.
In fact, it doesn't have the capability built in. It relies on compilers and linkers
maintained by third parties. It doesn't even call them directly but relies
on external build systems (currently, Make, CMake, and Meson) to do so.
Furthermore, it assumes you already know how to use the external
tools. It is in your best interest to learn how to use them outside of
Eclipse it you don't already know.

Eclipse/CDT was originally built around using Make and has the most
support for it supplying only rudimentary support for the others. By
"support" I mean the capability to specify your intentions to the build
system to allow it in turn to communicate them to the compiler and
linker. The build system is executed to actually build your application.

If you are familiar with any of those systems, it should be fairly obvious
what Eclipse is doing. The only real issue would be where to find it among
all of the menu items.

Clearly, which ever one you are using hasn't been told to tell the
compiler and linker to produce debug information in your executable.
How that is done depends a lot on what you are using.

Previous Topic:GUI for beginners
Next Topic:CDT Build
Goto Forum:
  


Current Time: Sat Oct 01 02:17:23 GMT 2022

Powered by FUDForum. Page generated in 0.02287 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top