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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,35de4b882738f3d8 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: GNAT debugger. Date: 1996/10/17 Message-ID: #1/1 X-Deja-AN: 190233560 references: <54506a$kel@columbia.acc.brad.ac.uk> organization: New York University newsgroups: comp.lang.ada Date: 1996-10-17T00:00:00+00:00 List-Id: Gary asks " Is there a graphical or command based debugger for gnat which allows inspection of and stepping though ada code. For example the borland turbo c++ debugger allows you to step through each line of code and displays the values stored in variables as your code changes. It doesnt need to look as good as the turbo interface. This help speed up the finding that an loop only goes through 9 times when you want it to loop 10 etc instead of tediously going line by line through the source code. " The answer to your first question is yes, DDD, a freely available GUI front end for GDB. However, I suspect from your message that you have not yet learned a lot of what gdb can do -- for instance do you know how to set conditoinal breakpoints? If not you are seriously handicapped in your use of gdb. There are many other facilities, many of them are worth learning. Graphical user interfaces can be quite useful, but many people who know gdb well and know its capabilities would not find them particularly helpful. Certainly finding that "an loop only goes through 9 times when you want it to loop 10 etc" does NOT require "tediously going line by line through the source code". You also must learn how to code gdb macros, and also use the call command in gdb. All these and many others are critical features to make good use of this tool. We often run into people who complain about gdb and it turns out they simply don't know what it can do. There are many legitimate complaints and suggestions for improvement, and I am certainly not suggesting that all complaints are in this category. However, it is definitely worth while learning GDB if you are using it. You may want to get hold of the nice GDB manual and reference card from FSF. You can find these in many bookstores, or order direct from FSF.