Solved

Ubuntu, c++ gui compiler with debugger

Posted on 2013-01-17
5
599 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

734 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