Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-08-2010, 03:06 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 13

Rep: Reputation: 0
How to used Debugger with Linux (for C and C++)


1. How do i use the Debugger in Linux.
I am using Vi editor and terminal.
For C and C++ programs.

2. Any great tutorials or link.

3. Is there any C and C++ IDE similiar to VC++? Were I can set breakpoints etc?

4. Is makefile the option to compile multiple files while using Terminal for compiling?

I would be delighted if someone can point me a valuable guide or book.

Thanks in advance
Old 03-08-2010, 03:30 AM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
There are plenty of tutorials available - search for 'gdb tutorial howto'

Eclipse seems to be a popular, heavy duty IDE, but there are plenty of others available.

Makefiles are instructions/directives for the 'make' program, there are also tons of tutorials available for this - search for 'makefile tutorial'

Old 03-08-2010, 04:00 AM   #3
Registered: Mar 2010
Location: Tennessee, USA
Distribution: Arch, Fedora
Posts: 59

Rep: Reputation: 18
If you are using vi and makefiles, look into the :make command in vi. It will allow you to run make from the command line and, if there is an error, can even return you to the line in the file where the error was found.

Also, if you haven't already tried it, look into screen. GNU Screen allows you to run multiple virtual terminals inside of one terminal. You can then switch easily between multiple terminals, copy and paste between them, and even detach the whole session and reatach it -- even over a network.
Old 03-08-2010, 04:27 AM   #4
Registered: Dec 2008
Posts: 36

Rep: Reputation: 1
kdevelop will give look and feel similar to the vc++ in windows.

You can have look on the emacs another popular editor.
1 members found this post helpful.
Old 03-11-2010, 04:05 AM   #5
LQ Newbie
Registered: Nov 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Let me check out...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
linux Debugger Misbah Naveed Linux - Kernel 1 01-08-2008 11:27 AM
LXer: Bi-directional Linux debugger LXer Syndicated Linux News 0 09-03-2006 06:54 PM
php debugger for linux sunlinux Programming 4 06-19-2006 12:08 AM
linux debugger an IDE thrix Programming 8 04-02-2004 01:05 AM
Best IDE and DEBUGGER for linux ?? ritesh_aladdin Linux - Software 2 07-24-2003 10:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration