Kdevelop problems with debugging

Dirk Broer dbroer at matricsrfid.com
Tue Mar 4 14:49:35 GMT 2003


Much of the gnu's version of the standard library or rather C++ library is
implemented inline - which fouls up not only stepping through code but when
it does seg-fault and it points to a .h file, in my experience the line
number is never right (so which getter or setter really crashed?)  Try
compiling with all optimization off and no-line.

Dirk Broer      (410)872-0300 x-124
Software Engineer
Matrics, Inc
8850 Stanford Blvd, Suite 3000
Columbia, MD 21045

#include <standard_disclaimer>
#include <funny_quote>

XYZZY: Branch and Play Adventure
 -- New Opcode

-----Original Message-----
From: Mailing list agent [mailto:mdom at barney.cs.uni-potsdam.de]On Behalf Of
Evil Kosh
Sent: Monday, March 03, 2003 4:47 PM
To: KDevelop
Subject: Kdevelop problems with debugging

Hi,

I'm having a little trouble debugging an application, I'll tell you what
happens, hopefully someone will know why this happens.

I put a breakpoint, I run the program and do something that comes across
that breakpoint at which point the debugger comes in and lets me do
things like step in/out.

I decide to step over a function and the debugger, instead of putting me
on the next available source code line, puts me into the creation of an
ifstream object (which is what the next line does, opens a file like
this)

std::ifstream stream(m_filename.c_str());

But err, I didnt want to go INTO that method, I simply wanted to step
over the current line of code I was viewing.

So thats the first thing, this is obviously incorrect behaviour from a
user point of view, regardless of what the technology is capable of
doing.  It should put me ON that line, not half way within creating that
object.

Second thing is, I step out and instead of putting me at the next line
of code, I find myself in the methods PARENT method.  So instead of
stepping out of just the method I was in (the ifstream constructor I
assume) and back into the method I was in before, it takes me to that
methods parent instead.

Very odd.  I thought gdb was a mature debugging environment, but it
seems like it's very basic and buggy.  (this is not supposed to be a
flame, but it's not happened to me before in msvc, so I'm comparing
here).

Anyone know why this behaviour occurs and whether after about 10 years
of development, it'll actually get fixed by anyone?  OR is this just
me?  If it's me, I'll put my hands up and admit it.

thanks

kosh

--
Evil Kosh <evil_kosh_uk at yahoo.co.uk>

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org
with the following body:
unsubscribe "your-email-address"


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list