LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,

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, 04:30 AM   #2
kbp
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'

cheers
 
Old 03-08-2010, 05:00 AM   #3
kainosnous
Member
 
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, 05:27 AM   #4
vlrk
Member
 
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, 05:05 AM   #5
sanddune008
LQ Newbie
 
Registered: Nov 2006
Posts: 13

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


Reply


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 12:27 PM
LXer: Bi-directional Linux debugger LXer Syndicated Linux News 0 09-03-2006 07:54 PM
php debugger for linux sunlinux Programming 4 06-19-2006 01:08 AM
linux debugger an IDE thrix Programming 8 04-02-2004 02:05 AM
Best IDE and DEBUGGER for linux ?? ritesh_aladdin Linux - Software 2 07-24-2003 11:27 AM


All times are GMT -5. The time now is 05:10 AM.

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