List Info

Thread: Debug application




Debug application
user name
2007-05-18 09:38:45
Hello,

I'm new with KDevelop. I'm used to develop in Windows
environment and
now I have to do some Linux projects.
I'm trying to debug a program and I don't understand how
this should be done.
I looking for the target and I don't see this option. The
GUI let me
insert breakpoints but they don't break execution at all.

Does anyone know what I should do or can point me to a
newbie tutorial?

Thanks in advance.

Paul

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: Debug application
user name
2007-05-18 09:51:02
2007/5/18, Paul Vicenti <pvicentigmail.com>:
> Hello,
>
> I'm new with KDevelop. I'm used to develop in Windows
environment and
> now I have to do some Linux projects.
> I'm trying to debug a program and I don't understand
how this should be done.
> I looking for the target and I don't see this option.
The GUI let me
> insert breakpoints but they don't break execution at
all.

Did you setup Project->Project Options-> Run Options /
Debugger tab?
Especially main program group in Run Options tab and
Debugger excutable input in Debugger tab should be set
mandatorily.

And when starting program inside kdevelop, use
Debug->start.

Also please see message tab at program bottomside and see
whether
there are any error messages or not.

Can you please describe your symtom more specifically?

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: Debug application
user name
2007-05-18 10:11:22
Thank you for your response.

In Run Options:

Executable           /home/pablo/kdevelop/test/./bin/test
Working Directory    /home/pablo/kdevelop/test


Options: none set

Environment variables: empty


Debugger tab:

Debugger executable              /usr/bin/gdb

Options (set):
Display static ...
Display Demangled
Try setting...

The symtom: the program runs successfully but it doesn't
stop in the
breakpoints. Yes I use Debug -> Start or just F9.

Regards,
Paul


On 5/18/07, dukju ahn <dukjuahngmail.com> wrote:
> 2007/5/18, Paul Vicenti <pvicentigmail.com>:
> > Hello,
> >
> > I'm new with KDevelop. I'm used to develop in
Windows environment and
> > now I have to do some Linux projects.
> > I'm trying to debug a program and I don't
understand how this should be done.
> > I looking for the target and I don't see this
option. The GUI let me
> > insert breakpoints but they don't break execution
at all.
>
> Did you setup Project->Project Options-> Run
Options / Debugger tab?
> Especially main program group in Run Options tab and
> Debugger excutable input in Debugger tab should be set
mandatorily.
>
> And when starting program inside kdevelop, use
Debug->start.
>
> Also please see message tab at program bottomside and
see whether
> there are any error messages or not.
>
> Can you please describe your symtom more specifically?
>
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-develkdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel
>

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: Debug application
user name
2007-05-18 12:30:04
> On 5/18/07, dukju ahn <dukjuahngmail.com> wrote:
> > 2007/5/18, Paul Vicenti <pvicentigmail.com>:
> > > Hello,
> > >
> > > I'm new with KDevelop. I'm used to develop in
Windows environment and
> > > now I have to do some Linux projects.
> > > I'm trying to debug a program and I don't
understand how this should be done.
> > > I looking for the target and I don't see this
option. The GUI let me
> > > insert breakpoints but they don't break
execution at all.
> >
> > Did you setup Project->Project Options-> Run
Options / Debugger tab?
> > Especially main program group in Run Options tab
and
> > Debugger excutable input in Debugger tab should be
set mandatorily.
> >
> > And when starting program inside kdevelop, use
Debug->start.
> >
> > Also please see message tab at program bottomside
and see whether
> > there are any error messages or not.
> >
> > Can you please describe your symtom more
specifically?
> >
> The symtom: the program runs successfully but it
doesn't stop in the
> breakpoints. Yes I use Debug -> Start or just F9.

Oh.. That may be KDevelop's debugger bug. There were some
other
people (including me) that breakpoint sometimes doesn't
work
although the GUI displays breakpoint.
In case of me, _before_ I start debugging, I remove every
breakpoints
previously used and add a new fresh breakpoint.

Or you can start your target program in normal console and
attach
that process to KDevelop via Debug->Attach to process.
Once attached,
the program pauses excution, and you can set breakpoint
after
the program is attached.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

RE: Debug application
country flaguser name
United States
2007-05-18 12:32:33
> The symtom: the program runs successfully but it
doesn't stop
> in the breakpoints. Yes I use Debug -> Start or just
F9.

This usually caused by your application not having debugging
symbols.
Depending on the type of build system you are using, you may
be able to
enable this in the build manager in KDevelop.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: Debug application
user name
2007-05-18 14:10:19
On 18.05.07 13:30:04, dukju ahn wrote:
> > On 5/18/07, dukju ahn <dukjuahngmail.com> wrote:
> > > 2007/5/18, Paul Vicenti <pvicentigmail.com>:
> > > > Hello,
> > > >
> > > > I'm new with KDevelop. I'm used to
develop in Windows environment and
> > > > now I have to do some Linux projects.
> > > > I'm trying to debug a program and I
don't understand how this should be done.
> > > > I looking for the target and I don't see
this option. The GUI let me
> > > > insert breakpoints but they don't break
execution at all.
> > >
> > > Did you setup Project->Project
Options-> Run Options / Debugger tab?
> > > Especially main program group in Run Options
tab and
> > > Debugger excutable input in Debugger tab
should be set mandatorily.
> > >
> > > And when starting program inside kdevelop,
use Debug->start.
> > >
> > > Also please see message tab at program
bottomside and see whether
> > > there are any error messages or not.
> > >
> > > Can you please describe your symtom more
specifically?
> > >
> > The symtom: the program runs successfully but it
doesn't stop in the
> > breakpoints. Yes I use Debug -> Start or just
F9.
> 
> Oh.. That may be KDevelop's debugger bug. There were
some other
> people (including me) that breakpoint sometimes doesn't
work
> although the GUI displays breakpoint.

Do you use CMAKE_BUILD_TYPE=debufull (or configure
--enable-debug=full)?
Else the compile will still do some optimizations and thus
breakpoints
will behave weird.

Andreas

-- 
You will pioneer the first Martian colony.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )