Solved

Ubuntu, c++ gui compiler with debugger

Posted on 2013-01-17
5
588 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

910 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

24 Experts available now in Live!

Get 1:1 Help Now