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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx02.iad.POSTED!not-for-mail From: Brad Moore User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Quick Question about GPS IDE References: <65Pnw.784261$_k.162865@fx16.iad> <1w1zdixq5j24a.4zrnyiwijmrj$.dlg@40tude.net> <1l3qw3vstmcag$.1qdkh60s0b38n$.dlg@40tude.net> <1hw9w1ecyf42u.1x8fovgepzisj.dlg@40tude.net> <1odwfl4m7imvn.r0p2gn37dn6p.dlg@40tude.net> <4lsidi60qdpo$.1nwjgjk69zaw7.dlg@40tude.net> <85a926u74r.fsf@stephe-leake.org> In-Reply-To: <85a926u74r.fsf@stephe-leake.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: NNTP-Posting-Host: 68.145.219.148 X-Complaints-To: internet.abuse@sjrb.ca X-Trace: 1419871948 68.145.219.148 (Mon, 29 Dec 2014 16:52:28 UTC) NNTP-Posting-Date: Mon, 29 Dec 2014 16:52:28 UTC Date: Mon, 29 Dec 2014 09:52:28 -0700 X-Received-Bytes: 3546 X-Received-Body-CRC: 1059494190 Xref: number.nntp.giganews.com comp.lang.ada:191583 Date: 2014-12-29T09:52:28-07:00 List-Id: On 14-12-29 02:39 AM, Stephen Leake wrote: > "Dmitry A. Kazakov" writes: > >> On Sun, 28 Dec 2014 23:21:20 +0100, J-P. Rosen wrote: >> >>> Le 28/12/2014 13:41, Dmitry A. Kazakov a écrit : >>>> Its gdb is totally unusable in any real-life sized project. You will not be >>>> able to initialize the program and set a break point, as simple as this. >>> ??? >>> Debug/Initialize, then click in the left margin in front of the line >>> where you want to set a breakpoint. Looks like simple and intuitive... >>> >>> Note: I rarely use debuggers in general, >> >> That's why you believe it would work. >> >>> but I can't let such an >>> incorrect information without a rebutal... >> >> As I said, in a real size project you either will not be able to set the >> breakpoint after you initialize or else it will not stop at the breakpoint. >> Actually it will not stop anywhere. I don't know if that depends on the >> size or on libraries used, maybe on both. Even when you could set a >> breakpoint you not guaranteed to be able to debug the program. It can go >> mad at any time, while stepping through etc. The fact is, it is totally >> unusable in practice. > > Just for the record, I use gdb fairly often, on real projects (a NASA > simulator, home projects), and have _never_ had these issues. I've run > it on Lynx (a real-time OS) both natively and via the remote interface, > on Windows, Red Hat and Debian. > > So it depends on the details of your project. > I've also used it to debug large multi-threaded distributed systems, both within GPS and Ada, and outside of Ada and GPS (C and C++), and have found it to be a useful tool. I also have not seen the issues mentioned. I've also used the Visual Studio debugger, and offhand haven't seen any significant difference between the two environments. There may be finer details that highlight one over the other, but if so, I haven't noticed them. Overall, I think they are fairly comparable. One nice feature of gdb that I think Visual Studio lacks is that it can also be used in a console window without a GUI, which I've found to be useful at times when debugging on an embedded platform, though gdb also supports remote debugging with a GUI. So I basically disagree with the claim that it is totally unusable in practice.