help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debugging C++


From: Bernd Strieder
Subject: Re: debugging C++
Date: Tue, 31 Oct 2006 18:11:01 +0100
User-agent: KNode/0.10.1

Hello,

John V Shahid wrote:

> can anybody tell me how can debug my own code without getting that
> garbage from the template. In other words, i need to remove the
> template(or all the C++ library) c++ code from my executable, so i
> will be debugging my functions and not those of the STL.

I think you could reach this with enormous effort, but I have never
found it necessary, myself.

Your debugger should be able to get you to function main, to set
breakpoints in your own source, to return to a stack frame belonging to
your code, if you made it crash deeply inside the standard library. So
the place, where your code is left should be reachable by means of a
few keystrokes, always. No need to hide anything. With a little bit
consideration, you can get important information from the way STL
crashes, so it should always be possible to get it, IMO.

So maybe you have some problems with debugging in general, but then you
should describe your problem more precisely, so anybody can help with
it. What versions of what tools are you using?

Bernd Strieder



reply via email to

[Prev in Thread] Current Thread [Next in Thread]