LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2009, 07:43 AM   #1
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
How to build a program in Debug


Hi,

I wish to debug a C++ application in Eclipse. How do I modify my makefile or what command line parameters do I need to use when making the program so that I can build it in Debug?


Thanks
 
Old 11-30-2009, 08:34 AM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
For gcc, use the -g flag for debug info, and -ggdb for debug info optimized for the GDB debugger.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I build debug versions of drivers DEF. Programming 5 04-29-2009 05:48 AM
encore m3 bsp: kernel 2.6 build fails at this point..where do I debug? ashlesha Linux - Kernel 0 08-09-2006 05:55 PM
How do i debug my c++ program please? twirl Programming 1 09-12-2005 02:34 AM
Build 'n Debug a C/C++ KDevlop cmd prompt project SCOSWriter Linux - Software 2 12-10-2004 10:07 AM
debug build of glibc flok Slackware 2 07-13-2004 11:17 AM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration