From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d5b211b0c1ffcf3e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.193.129 with SMTP id ho1mr2119386pbc.8.1340343138508; Thu, 21 Jun 2012 22:32:18 -0700 (PDT) Path: l9ni5768pbj.0!nntp.google.com!news2.google.com!goblin3!goblin.stu.neva.ru!gegeweb.org!news.ecp.fr!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Tero Koskinen Newsgroups: comp.lang.ada Subject: Re: Practicalities of Ada for app development Date: Fri, 22 Jun 2012 08:32:15 +0300 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: <20120622083215.f4d37d14bee6f2a5f144bbe6@iki.fi> References: <79c5c9f7-4b72-4990-8961-b3e2db4db79b@qz1g2000pbc.googlegroups.com> <92daaca1-46ae-43e1-abae-397b4bf6aa33@googlegroups.com> NNTP-Posting-Host: dsl-trebrasgw2-fe9cde00-96.dhcp.inet.fi Mime-Version: 1.0 X-Trace: munin.nbi.dk 1340343135 7314 80.222.156.96 (22 Jun 2012 05:32:15 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 22 Jun 2012 05:32:15 +0000 (UTC) X-Newsreader: Sylpheed 3.2.0beta6 (GTK+ 2.24.10; x86_64-redhat-linux-gnu) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: 2012-06-22T08:32:15+03:00 List-Id: On Fri, 22 Jun 2012 05:59:08 +0100 Simon Wright wrote: > "Randy Brukardt" writes: > > > "Adam Beneschan" wrote in message > > news:92daaca1-46ae-43e1-abae-397b4bf6aa33@googlegroups.com... > > ... > >> Actually, that's a typical case where I find a debugger useful. At > >> the point where you add the trace message, I set a breakpoint, but > >> set it up so that it continues automatically and doesn't display any > >> message. Then when the crash occurs, I ask the debugger to display > >> information on the breakpoint, and find that it occurred N times. > > > > I've never encountered any debugger that even claimed to have that > > information; I've surely never used one that has any sort of count or > > other information about a breakpoint (other than the address where it > > is set). They just break, period. > > GDB does this. > > (gdb) catch exception constraint_error > Catchpoint 1: `constraint_error' Ada exception > (gdb) commands 1 This "commands" command is also nice. You can define a set of actions which automatically happen when the breakpoint is triggered. Another nice feature of recent gdb (7.0) is Python scripting: http://sourceware.org/gdb/onlinedocs/gdb/Python-Commands.html http://napsy.wordpress.com/2009/10/11/gdb-7-scripting/ -- Tero Koskinen - http://iki.fi/tero.koskinen/