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 Newsgroups: comp.lang.c++ Subject: Re: Debugger Recommendation Date: Thu, 15 Sep 2011 21:23:37 +1200 Lines: 27 Message-ID: <9ddugpF2gmU4@mid.individual.net> References: <4e71c098$0$24024$a729d347@news.telepac.pt> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net brr5PFIr8rXabLb6WJ6xzQ1jaUMQMMGC7ho9kLBvKNDyqmiDS5 Cancel-Lock: sha1:Z8hOJ9vexLYk/x5MhXgoqptOVC4= 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: <4e71c098$0$24024$a729d347@news.telepac.pt> Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:10145 On 09/15/11 09:08 PM, Rui Maciel wrote: > Jorgen Grahn wrote: > >> You might want to know that many C++ users rarely or never use a >> traditional debugger[1]. I'm one of them -- I used gdb for a while last >> Friday, but the time before that was many years ago. >> >> On Unix, you need to be able to debug core dumps but when dealing with >> running programs it's more important to know tools like >> - the compiler >> - valgrind >> - strace and ltrace, >> and knowing how to write unit tests. All of that is IMHO more >> important than live debugging. > > It can be said that one of the reasons why "many C++ users" tend not to use > a debugger in linux is that gdb doesn't work well with C++, and once we > ignore gdb there isn't much left to consider. Nonetheless, if there was a > decent debugger that adequately supported C++ then "many C++ users" would > use it, including for stuff where valgrind and other tools are employed. Not having a decent debugger (not an opinion of gdb as I don't use it) has the benefit of forcing the developer to write better unit tests. I learned that lesson writing PHP :) -- Ian Collins