LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-03-2011, 12:12 PM   #1
zontxo
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Rep: Reputation: Disabled
Question GUI debugger for C project - text mode only


hi all, i am a newbie with Linux and i was accustomed to work with borland app. in windows for my C projects.

now, i have to develop C project for linux environment, threads, mutex, etc...and it works only in text mode, non-GUI project.

i have tried to install Kylix... waste of time.
I could install Anjuta but when i was looking for some options, etc.. it failed, closed and i am not able to recover it...

is there any other option to debug my C proyect? I need to add watches, break points, etc.. and see result thru the console...

Suse installed:
openSUSE 11.4 (i586)
VERSION = 11.4
CODENAME = Celadon

Thanks in advance.
 
Old 07-03-2011, 12:16 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I don't know of any real Linux IDE that works solely in text-mode. Most developers just use a text editor such as vi/vim, the shell commandline, gcc, gdb debugger, and make.
--- rod.
 
Old 07-03-2011, 03:41 PM   #3
zontxo
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
thanks theNbomr.
what we need is to debug our C projects like in Borland (windows version) where you can run the code, add breaks points, watches, debug your code step by step seeing results while code is being executed, etc.. etc....
I have tried with gcc and gdd debugger without success... is it possible to do the same with this commands?

Thans theNbomr.
 
Old 07-03-2011, 04:02 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
gdb is the standard source-level debugger in Linux. There are various graphics-mode GUI front-ends that friendly it up, such as ddd (my preference). You have me confused when you say 'Borland (windows version)', which implies a GUI-oriented debugger, but where you earlier said 'works only in text mode, non-GUI project'. Are you talking about the debugger, or your application? It is quite possible to use ddd to debug a text-mode application; in fact I don't think I've ever used it on a GUI application. ddd/gdb allows you to do all the kinds of things you refer to. You do have to build your application with debugging hooks enabled; for gcc use the '-g' option.
I don't know what gdd is.
--- rod.

Last edited by theNbomr; 07-03-2011 at 05:15 PM.
 
Old 07-03-2011, 04:30 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
You can also try cgdb, it's gdb but has a split window that shows the source code on top.
 
Old 07-04-2011, 08:06 AM   #6
zontxo
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
thanks MTK358 for your answer and thanks again theNbomr. my english is the problem

i said Borland trying to give you guys the picture i have in my mind about the unique easy way i know to debug code... sorry for the confusion... for me it is quite complex to leave windows and face linux by myself. I have heard it is more realiable, stable, you can configure it better than windows, etc... but the first time you try to do so somethigs...aha my friend.... it is hard one thing is clear... i have to read some guides to understand better the OS structure, etc...

in my first steps, kylix and anjuta, it was a waste of time... and what is worst.. .i don't know how to solve this situation... well, yes, your answers, for sure... i am trying to understand how ddd and cgdb work and it looks the solution i need. thanks again for your help.

as i commented, i have to write a project in C to be used thru konsole in its first phase. first solution to debug my code, i.e printf... but it is a caos when you use it in a while loop. when i saw this, i mean, the complex of debugging my code with a konsole... i remember how easy is to use an IDE, a GUI environment where you have the source code in one window, you can compile it, add watches to see the values of your variables, breakpoints, etc...


well, I do not know if I have further clarified the situation...

Thanks.
 
Old 07-04-2011, 08:37 AM   #7
zontxo
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
hi again, i could finish with installation of both amazing tools... cgdb and ddd... they are exactly what i need and they are amazing.

ddd look more easy for use. anyway, they will give me the tools i need.

Thanks guys. I really appreaciate it.
 
  


Reply



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
Change from GUI mode to text mode alexr186 Linux - Software 4 01-08-2009 06:56 AM
Profile variable exports in text mode, not in GUI mode....huh? duderancher Red Hat 1 09-13-2007 06:45 PM
LXer: Howto Boot debian in text mode instead of graphical mode (GUI) LXer Syndicated Linux News 0 09-09-2007 07:41 PM
flickering of screen while returning back to GUI mode from Text mode using Ctl+Alt+F7 varun_shrivastava Linux - Newbie 1 03-30-2007 10:12 AM
from GUI to text mode? safra Linux - Newbie 3 07-03-2002 03:18 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:07 PM.

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
Open Source Consulting | Domain Registration