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 X-Received: by 10.13.216.145 with SMTP id a139mr2730320ywe.11.1459514596849; Fri, 01 Apr 2016 05:43:16 -0700 (PDT) X-Received: by 10.157.62.183 with SMTP id b52mr226065otc.1.1459514596806; Fri, 01 Apr 2016 05:43:16 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!y89no10436181qge.0!news-out.google.com!ha2ni321igb.0!nntp.google.com!nt3no6639173igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 1 Apr 2016 05:43:16 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=95.173.128.204; posting-account=YB4WOgoAAABLG9D7qoJiPBc6EJSzsPDF NNTP-Posting-Host: 95.173.128.204 References: <75868a0e-c46d-4d7a-9c91-9d29edbe6622@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9843ad82-e2b2-4c51-8007-15200986d992@googlegroups.com> Subject: Re: GPS Debugger exit when "Ada.Text_IO.Put_Line" reached. From: George J Injection-Date: Fri, 01 Apr 2016 12:43:16 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3137 X-Received-Body-CRC: 3216826024 Xref: news.eternal-september.org comp.lang.ada:29952 Date: 2016-04-01T05:43:16-07:00 List-Id: On Friday, 1 April 2016 15:18:19 UTC+3, Simon Wright wrote: > George J writes: >=20 > > Hi all!I'm using GNAT GPS in my project. I have a problem with > > debugging. When debugger reaches line > > "Ada.Text_IO.Put_Line("Something");" it exit with "[Inferior 1 > > (process X) exited with code 1]". So I can't understand, how I can > > solve this problem. And BTW I have a question, is there any feature to > > display only "Debug Messages" in console or not? >=20 > George, why do you post messages three times? >=20 > Please say what you mean by "when debugger reaches line". Did you put a > breakpoint on it? If so, what did you do next? I most often use gdb from > the command line rather than via GPS; there are four possibilities, (1) > next =3D> run until the next line in the current subprogram is reached, > (2) step =3D> if at a subprogram call, run until the first line of the > subprogram, otherwise as next I think, (3) finish =3D> run until the > current subprogram returns, (4) continue =3D> run until another > breakpoint/exception/end of program (your program ran to end of > program). >=20 > In GPS, the buttons that control this are displayed (only while > debugging) at the right-hand end of the row of buttons under the menu > bar. >=20 > You do have to have compiled your code for debug (for example, you can't > step into a subprogram that wasn't compiled for debug). Simon hello!Glad to see you again!I'm second day in this group and my previ= us post were not correct. And I see, if I delete it here, it's displaying s= omewhere else. Under "when debugger reaches line" I mean that debugger do not reach the co= de after "Put_Line" with any conditions(with BP before,on or after "Put_Lin= e" command). That's my problem. When I run program, all ok. But if debug-ex= it with "[Inferior 1 (process X) exited with code 1]" on "Put_Line" with or= without breakpoint.