?
Solved

Ubuntu, c++ gui compiler with debugger

Posted on 2013-01-17
5
Medium Priority
?
607 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 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