Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #8504

Re: c++ compiler

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: c++ compiler
Date Sat, 06 Aug 2011 21:42:57 +1200
Lines 62
Message-ID <9a4gl1FfkpU1@mid.individual.net> (permalink)
References <59223312-c2e1-416f-b647-5d0df25bc2b8@f17g2000prf.googlegroups.com> <j1cdhg$4bk$1@dont-email.me> <12ioeb0ubofum$.dlg@localhost.localdomain> <j1fjli$7ea$2@speranza.aioe.org> <buo1ux0fl9o.fsf@dhlpc061.dev.necel.com> <j1gcc0$lbg$1@news.albasani.net> <buosjpgdwlq.fsf@dhlpc061.dev.necel.com> <j1glta$sql$1@dont-email.me> <9a373aFuliU1@mid.individual.net> <j1hq1v$167$1@news.albasani.net> <9a38ktFuliU2@mid.individual.net> <j1i5nt$cbd$1@news.albasani.net> <9a3qgeFk3bU1@mid.individual.net> <4e3cfe4b$0$30706$5fc3050@news.tiscali.nl>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net BxFPqVGFAjKNja04N4bvOA1AX/8sswVJjM+N3P7ZieFD5tcQGa
Cancel-Lock sha1:Ybp8ljF+bidfzBHcxrT6VHCNIFs=
User-Agent Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4
In-Reply-To <4e3cfe4b$0$30706$5fc3050@news.tiscali.nl>
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:8504

Show key headers only | View raw


On 08/ 6/11 08:42 PM, Dombo wrote:
> Op 06-Aug-11 5:25, Ian Collins schreef:
>> On 08/ 6/11 01:30 PM, BGB wrote:
>>> On 8/5/2011 3:20 PM, Ian Collins wrote:
>>>> On 08/ 6/11 10:10 AM, BGB wrote:
>>>>> On 8/5/2011 2:53 PM, Ian Collins wrote:
>>>>>> On 08/ 5/11 11:58 PM, Victor Bazarov wrote:
>>>>>>> On 8/5/2011 5:41 AM, Miles Bader wrote:
>>>>>>>> [..]
>>>>>>>> My general issue with the VS debugger was that very often there
>>>>>>>> would
>>>>>>>> be cases where you could _see_ interesting data, but not be able to
>>>>>>>> manipulate it, or be able to manipulate it, but only rather
>>>>>>>> awkwardly
>>>>>>>> (o-n-e-s-t-e-p-a-t-a-t-i-m-e... argh!) For complex debugging tasks,
>>>>>>>> this quickly became absolutely miserable
>>>>>>>>
>>>>>>>> With gdb, on the other hand, which is largely based on expression
>>>>>>>> evaluation, while it was harder to visualize data, manipulation
>>>>>>>> of it
>>>>>>>> was vastly faster and easier (and more easily repeatable; often one
>>>>>>>> wants to do the weird manipulation several times).
>>>>>>>
>>>>>>> In other words, with VC++'s debugger you're actually deBUGging,
>>>>>>> finding
>>>>>>> out what's wrong, one step at a time, stopping to think, exiting to
>>>>>>> change the code, compile, run again, etc.. With gdb you're actually
>>>>>>> developing by tweaking the data, tweaking the program, altering
>>>>>>> execution, etc.. Yes, no, maybe? It's a style debate, not the quality
>>>>>>> of tools debate.
>>>>>>
>>>>>> If you need a debugger, your unit tests aren't good enough!
>
> Unit tests never are. Even when the code coverage is 100% there is still
> no guarantee that you have covered all possible execution flows.

There should be if you wrote the tests first.

>>>>>> Dives for cover :)
>>>>>
>>>>> unit tests wont help finding out where and why one is experiencing a
>>>>> segfault or similar...
>
> Unless you can reproduce the problem with your unit test (extend it if
> needed).
>
>>>> If a change causes a crash, back it out and try again...
>>>
>>> or, just invoke the debugger and see why it has crashed...
>>
>> If that's quicker than redoing the change, you are changing too much
>> between test runs.
>
> Invoking a debugger to see the point where a process has crashed, see
> the call stack and see the variables takes less than a second. How many
> changes can you make in that time, recompile and running your unit tests?

That all depends whether the platform (and language) you are using has a 
decent debugger.

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

c++ compiler krishnakanth <kmanivan82@gmail.com> - 2011-08-03 13:34 -0700
  Re: c++ compiler Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-03 17:11 -0400
    Re: c++ compiler "Waldek M." <wm@localhost.localdomain> - 2011-08-04 21:40 +0200
      Re: c++ compiler BGB <cr88192@hotmail.com> - 2011-08-04 15:06 -0700
      Re: c++ compiler Qi <no@no.no> - 2011-08-05 10:14 +0800
        Re: c++ compiler Miles Bader <miles@gnu.org> - 2011-08-05 15:02 +0900
          Re: c++ compiler BGB <cr88192@hotmail.com> - 2011-08-05 02:11 -0700
            Re: c++ compiler Miles Bader <miles@gnu.org> - 2011-08-05 18:41 +0900
              Re: c++ compiler Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-05 07:58 -0400
                Re: c++ compiler "Waldek M." <wm@localhost.localdomain> - 2011-08-05 21:30 +0200
                Re: c++ compiler Ian Collins <ian-news@hotmail.com> - 2011-08-06 09:53 +1200
                Re: c++ compiler BGB <cr88192@hotmail.com> - 2011-08-05 15:10 -0700
                Re: c++ compiler Ian Collins <ian-news@hotmail.com> - 2011-08-06 10:20 +1200
                Re: c++ compiler BGB <cr88192@hotmail.com> - 2011-08-05 18:30 -0700
                Re: c++ compiler Ian Collins <ian-news@hotmail.com> - 2011-08-06 15:25 +1200
                Re: c++ compiler Dombo <dombo@disposable.invalid> - 2011-08-06 10:42 +0200
                Re: c++ compiler Ian Collins <ian-news@hotmail.com> - 2011-08-06 21:42 +1200
                Re: c++ compiler Dombo <dombo@disposable.invalid> - 2011-08-06 15:38 +0200
                Re: c++ compiler BGB <cr88192@hotmail.com> - 2011-08-06 11:58 -0700
                Re: c++ compiler yatremblay@bel1lin202.(none) (Yannick Tremblay) - 2011-08-09 13:28 +0000
                Re: c++ compiler Ian Collins <ian-news@hotmail.com> - 2011-08-07 08:33 +1200
              Re: c++ compiler BGB <cr88192@hotmail.com> - 2011-08-05 12:34 -0700
  Re: c++ compiler "Mel Smith" <med_cutout_syntel@aol.com> - 2011-08-05 15:13 -0600

csiph-web