Solved

Ubuntu, c++ gui compiler with debugger

Posted on 2013-01-17
5
586 Views
Last Modified: 2013-01-17
Hello experts!

I am new to C++, trying to find good GUI compiler for c++.

I found Geany and MonoDevelop.
They both compile, build and run fine but, none of them have working debugger by default.

Geany does not even allow to make breakpoints.
MonoDevelop allows to make breakpoints but ignores them.

Questions then:
- how can I make them both work as debugger?
- maybe some other software is better?

Also tried Eclipse but it does not even start.
0
Comment
Question by:panJames
  • 4
5 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 500 total points
ID: 38786487
Well, the actually compiler is nearly always going to be GCC. What you're actually after is a IDE for the compiler. As for the debugger, well that is nearly always going to be GDB and you'll probably need to configure your IDE to use it. Alternatively, you can use DDD, which is a Gui wrapper for GDB.

If you're looking for an IDE that is already set up to work (mostly) then you're probably better off taking a look at Eclipse CDT.
0
 
LVL 40

Expert Comment

by:evilrix
ID: 38786499
>> Also tried Eclipse but it does not even start.
Have you tried installing the package using your distro's package manager rather than trying to download and install from source? Packages nearly always just work out of the box.

Unfortunately, I don't use an IDE (I prefer just using vim on the command line) so I can't really give you specific solutions but if you can install CDT using your package manager it should just work (at least it did last time I tried it on Debian).
0
 

Author Comment

by:panJames
ID: 38786668
When using vim, how do u make breakpoints/ debugging?


panJames
0
 
LVL 40

Expert Comment

by:evilrix
ID: 38786718
You don't... you use gdb. Vim isn't an IDE - it's just a fantastic code editor.

http://www.gnu.org/software/gdb/
0
 
LVL 40

Expert Comment

by:evilrix
ID: 38787238
I've just noticed there is a Linux version of CodeBlocks. This is a great little IDE, I use it with MinGW on Windows. It automatically detected gcc and gdb and just set itself up to use them. I would hope it does this on Linux too. Possibly worth 15 mins of your time having a look. As a beginner I'm sure you'll find it far more user friendly than CDT.

http://www.codeblocks.org/downloads/26

Hope this helps.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now