Hi Sindhoor
OK lets start...
1)Say you have created a project called as try, in a directory called as
Development_Projects(A convention I follow on every machine I own.)
2)TGo to project->options menu, and see compiler options. Make sure that debug
info is on. Or specify additional compiler flag as -g.
3)Build the project.
4)Open a shell. Go to ~/Development_Projects/try/try. and run kdbg try &.
This should load the main program file. If you notice, there are two kinds of
open. One is open program and other is open source. You can open any other c/c++
file in the project, set a breakpoint anywhere you want with right click. Run
the program with F5 and enjoy...
I admit I could not get it running using KDevelop IDE itself but big deal... It
works anyway....
With DDD...
Make sure that your program executable is in the same directory as that of
source code. Ask DDD to open the program first. It should load main program
source code. Rest is self explainatory.
The catch for DDD is it looks only in certain direcotries for source code, when
you say 'open source'. You can specify the source path with
Edit->Preferences->source path. Preferences is a bit too huge panel but it's
good.
I find DDD stable in functionality. Many a times kdbg just refuse to identify
the program or source etc. Besides DDD teaches you gdb too, if you pay
attention. It supports threads etc, so that's good.
The real strength of KDbg is it's data display. It's fabulous. DDD is not that
much polished. Besides keystrokes in DDD work randomly so that's a
nuisance..(OK I have a CVS snapshot of DDD, 3.91 and did not bother to upgrade
it to stable one. But again who cares as long as it works... :-))
I recommend to keep both. You will need one at a time but you don't know which
one will satisfy you... :-))
HTH
Bye
Shridhar
sindhoor pangal wrote:
> hi
> programming with kdevel may be alright. but what i
> just am not able to do is debug with kdevelop.neither
> is Dddd easy. lots of guys tod me tht it was really
> easy. but when i asked them to do it in front of me
> they seemed to get stuck. any help with these two?
>
> sindhoor
----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr