Solved

Ubuntu, c++ gui compiler with debugger

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

695 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