From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.1 required=3.0 tests=BAYES_05,FREEMAIL_FROM, SCC_BODY_URI_ONLY,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:3006:b0:496:ad87:6784 with SMTP id ke6-20020a056214300600b00496ad876784mr16114354qvb.7.1664175613484; Mon, 26 Sep 2022 00:00:13 -0700 (PDT) X-Received: by 2002:a05:622a:1707:b0:35c:db45:3886 with SMTP id h7-20020a05622a170700b0035cdb453886mr17096015qtk.394.1664175613284; Mon, 26 Sep 2022 00:00:13 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!news.szaf.org!3.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 26 Sep 2022 00:00:13 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=2001:8004:1131:c9a2:2c8a:e714:716f:dc5a; posting-account=q18aiAoAAADbiIPIlD5R8oYVGhuoBvVA NNTP-Posting-Host: 2001:8004:1131:c9a2:2c8a:e714:716f:dc5a References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1d096812-95f3-4c93-80a7-59939faa816cn@googlegroups.com> Subject: Re: A new universe of Ada From: Rick Duley Injection-Date: Mon, 26 Sep 2022 07:00:13 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:64406 List-Id: On Monday, September 26, 2022 at 2:45:16 PM UTC+8, Dmitry A. Kazakov wrote: > On 2022-09-26 08:20, Rick Duley wrote:=20 >=20 > > I have Gnat Studio but I can't do anything at all unless I create a Pro= ject (whatever that is). Even then, I can't write and run Hello_World unles= s I call it Main. The concept of an IDE where I can step through a program = checking changes in variable values as I go seems to have vanished. > That concept is called debugger. GDB for GCC (GNAT Ada is based in GDB).= =20 > GDB never ever really worked except for little exercises. It still does= =20 > not. So, forget about it. > > In short, I am lost and I can't find any material to help me find my wa= y. > The project file is 3-liner:=20 > ----------------hello_world.gpr----->=20 > project Hello_World is=20 > for Main use ("hello_world.adb");=20 > end Hello_World;=20 > <------------------------------------=20 >=20 > No, you do not need main to be Main:=20 >=20 > ---hello_world.adb----------------->=20 > with Ada.Text_IO; use Ada.Text_IO;=20 > procedure Hello_World is=20 > begin=20 > Put_Line ("Hello world!");=20 > end Hello_World;=20 > <----------------------------------=20 >=20 > You still can compile and build without projects. But projects are much= =20 > more comfortable.=20 >=20 > --=20 > Regards,=20 > Dmitry A. Kazakov=20 > http://www.dmitry-kazakov.de