Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Generate debug info with "Managed Make C++ Project"
Generate debug info with "Managed Make C++ Project" [message #97303] Wed, 24 March 2004 19:49 Go to next message
Eclipse UserFriend
Originally posted by: ma77777777772000.yahoo.ca

I use Eclipse 2.1.3 and CDT 1.2.1 to develop my C++ programs.
How do I generate the debug info when the "Managed Make C++ Project" is
used?

This is what I found:
The default compile option of the makefile of the "Managed Make C++
Project" is
g++ -o $@ $(OBJS) $(USER_OBJS) $(LIBS)
which does not create the debugging information.

If I add "-g" option to the makefile,
g++ -g -o $@ $(OBJS) $(USER_OBJS) $(LIBS)
then when the program is built, the makefile will be overwritten and
reverted to the previous version.
Re: Generate debug info with "Managed Make C++ Project" [message #97747 is a reply to message #97303] Sat, 27 March 2004 17:02 Go to previous message
Eclipse UserFriend
Originally posted by: alain.nowhere.ca

TCMa wrote:

> I use Eclipse 2.1.3 and CDT 1.2.1 to develop my C++ programs.
> How do I generate the debug info when the "Managed Make C++ Project" is
> used?

> This is what I found:
> The default compile option of the makefile of the "Managed Make C++
> Project" is
> g++ -o $@ $(OBJS) $(USER_OBJS) $(LIBS)
> which does not create the debugging information.

> If I add "-g" option to the makefile,
> g++ -g -o $@ $(OBJS) $(USER_OBJS) $(LIBS)
> then when the program is built, the makefile will be overwritten and
> reverted to the previous version.

You will have to switch configuration and choose the "debug" config
instead of the "release" this is in the property of the project.
Previous Topic:C++ Eclipse / WebSphere confusion
Next Topic:To write my own MakeErrorParser in CDT
Goto Forum:
  


Current Time: Fri Jul 18 18:34:47 EDT 2025

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

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

Back to the top