Debug build not working as expected [message #1848184] |
Wed, 24 November 2021 05:08  |
Eclipse User |
|
|
|
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 10:42  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03219 seconds