View previous topic :: View next topic |
Author |
Message |
jeff n00b
Joined: 10 Apr 2002 Posts: 3 Location: Austin
|
Posted: Wed Apr 10, 2002 2:09 am Post subject: Debugger suggestions |
|
|
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 |
|
|
tigerike n00b
Joined: 10 Apr 2002 Posts: 9 Location: seattle, wa
|
Posted: Wed Apr 10, 2002 2:36 am Post subject: |
|
|
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 |
|
|
tobias n00b
Joined: 10 Apr 2002 Posts: 1 Location: Brighton, UK
|
Posted: Wed Apr 10, 2002 8:21 am Post subject: Debugger Suggestions |
|
|
You could try using ddd a graphical frontend to gdb which I have found to be very useful in the past... |
|
Back to top |
|
|
Guest
|
Posted: Sun Apr 14, 2002 6:31 am Post subject: |
|
|
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
Joined: 14 Apr 2002 Posts: 11
|
Posted: Sun Apr 14, 2002 7:52 am Post subject: |
|
|
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 |
|
|
slik n00b
Joined: 18 Apr 2002 Posts: 48 Location: Alberta, Canada
|
Posted: Thu Apr 18, 2002 11:09 am Post subject: |
|
|
tigerike wrote: | i use nedit it has full syntax highlighting for many languages. |
So does vim
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 |
|
|
igouy n00b
Joined: 18 Apr 2002 Posts: 1
|
Posted: Thu Apr 18, 2002 6:20 pm Post subject: Re: Debugger suggestions |
|
|
"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 |
|
|
jmahler Guest
|
Posted: Thu Apr 18, 2002 8:15 pm Post subject: jed |
|
|
i personally prefer jed or xjed. |
|
Back to top |
|
|
Guest
|
Posted: Fri Apr 19, 2002 8:23 am Post subject: Re: Debugger suggestions |
|
|
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 |
|
|
|