Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Debugger suggestions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jeff
n00b
n00b


Joined: 10 Apr 2002
Posts: 3
Location: Austin

PostPosted: Wed Apr 10, 2002 2:09 am    Post subject: Debugger suggestions Reply with quote

I'm almost afraid to ask this for fear of starting something, but I'm in the process of learning C++ here on linux instead of using Windows and Visual C++. I'm currently using VIM and GDB, since it appears that the IDEs like KDEVELOP and ANJUTA are more for the purpose of developing GNOME or KDE applications than for just messing around with simple test programs learning C++. So am I doing this the easy way or the hard way? It's working for me, but I'm open to suggestions, and if you think I'm wrong about the IDEs I'd like to hear that too. Jeff
Back to top
View user's profile Send private message
tigerike
n00b
n00b


Joined: 10 Apr 2002
Posts: 9
Location: seattle, wa

PostPosted: Wed Apr 10, 2002 2:36 am    Post subject: Reply with quote

im not too sure about the ides, i think that the best way to program on *nix is to write your code in a really good text editor. i use nedit it has full syntax highlighting for many languages. then use the command line tools to compile and debug your files
Back to top
View user's profile Send private message
tobias
n00b
n00b


Joined: 10 Apr 2002
Posts: 1
Location: Brighton, UK

PostPosted: Wed Apr 10, 2002 8:21 am    Post subject: Debugger Suggestions Reply with quote

You could try using ddd a graphical frontend to gdb which I have found to be very useful in the past...
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Apr 14, 2002 6:31 am    Post subject: Reply with quote

Personally, I tend to use emacs with syntax highlighting enabled for development, and gdb for debugging. I tried ddd a while ago, and I must say that I hated it. Very slow to load and the gui is counter-intuitive, IMHO anyway. While we're on the subject of gdb, is it me, or is anyone else having trouble upgrading to 5.1.1? I seem to be getting multiple definitions of 'true' and 'false'. I dunno if this is a problem with the gdb package itself or the ebuild, but isn't there any quality control on packages before they're submitted to the CVS?
Back to top
plm
n00b
n00b


Joined: 14 Apr 2002
Posts: 11

PostPosted: Sun Apr 14, 2002 7:52 am    Post subject: Reply with quote

Anonymous wrote:
Personally, I tend to use emacs with syntax highlighting enabled for development, and gdb for debugging.


In emacs you run run gdb in so called 'gud-mode' (grand unified debugger :) )

This enables you to use gdb without knowing all text commands, and also to set breakpoints by clicking on souce lines etc.
Back to top
View user's profile Send private message
slik
n00b
n00b


Joined: 18 Apr 2002
Posts: 48
Location: Alberta, Canada

PostPosted: Thu Apr 18, 2002 11:09 am    Post subject: Reply with quote

tigerike wrote:
i use nedit it has full syntax highlighting for many languages.


So does vim :wink:
Head on over to http://www.dotfiles.com/ for some .vimrc (there are useful "dotfiles" for other programs there too) examples for your /home/dir
Back to top
View user's profile Send private message
igouy
n00b
n00b


Joined: 18 Apr 2002
Posts: 1

PostPosted: Thu Apr 18, 2002 6:20 pm    Post subject: Re: Debugger suggestions Reply with quote

"learning C++ here on linux"

www.eclipse.org have a C++ project for their Eclipse IDE.

look in projects/eclipse tools project/C++ IDE
Back to top
View user's profile Send private message
jmahler
Guest





PostPosted: Thu Apr 18, 2002 8:15 pm    Post subject: jed Reply with quote

i personally prefer jed or xjed.
Back to top
Guest






PostPosted: Fri Apr 19, 2002 8:23 am    Post subject: Re: Debugger suggestions Reply with quote

jeff wrote:
I'm almost afraid to ask this for fear of starting something, but I'm in the process of learning C++ here on linux instead of using Windows and Visual C++. I'm currently using VIM and GDB, since it appears that the IDEs like KDEVELOP and ANJUTA are more for the purpose of developing GNOME or KDE applications than for just messing around with simple test programs learning C++. So am I doing this the easy way or the hard way? It's working for me, but I'm open to suggestions, and if you think I'm wrong about the IDEs I'd like to hear that too. Jeff


Well, If you like integrated environments like Visual C++, KDevelop does a nice job. You can start your project as plain C++ without using KDE or Gnome, and includes integrated debugger, code completion, class browser etc. With KVim it should even be possible to use vim inside kdevelop.

--Tue
Back to top
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum