ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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.
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?
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.