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.157.13.20 with SMTP id 20mr2855901oti.7.1459514673662; Fri, 01 Apr 2016 05:44:33 -0700 (PDT) X-Received: by 10.182.125.225 with SMTP id mt1mr224817obb.17.1459514673613; Fri, 01 Apr 2016 05:44:33 -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!news.glorb.com!sy18no580951igc.0!news-out.google.com!ha2ni321igb.0!nntp.google.com!nt3no6639459igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 1 Apr 2016 05:44:33 -0700 (PDT) In-Reply-To: <9843ad82-e2b2-4c51-8007-15200986d992@googlegroups.com> 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> <9843ad82-e2b2-4c51-8007-15200986d992@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8fa13e17-41e7-4782-9d96-d0df5524aa54@googlegroups.com> Subject: Re: GPS Debugger exit when "Ada.Text_IO.Put_Line" reached. From: George J Injection-Date: Fri, 01 Apr 2016 12:44:33 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:29953 Date: 2016-04-01T05:44:33-07:00 List-Id: On Friday, 1 April 2016 15:43:17 UTC+3, George J wrote: > On Friday, 1 April 2016 15:18:19 UTC+3, Simon Wright wrote: > > George J writes: > > > > > 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? > > > > George, why do you post messages three times? > > > > 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 => run until the next line in the current subprogram is reached, > > (2) step => if at a subprogram call, run until the first line of the > > subprogram, otherwise as next I think, (3) finish => run until the > > current subprogram returns, (4) continue => run until another > > breakpoint/exception/end of program (your program ran to end of > > program). > > > > 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. > > > > 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 previus post was not correct. And I see, if I delete it here, it's displaying somewhere else. > Under "when debugger reaches line" I mean that debugger do not reach the code after "Put_Line" with any conditions(with BP before,on or after "Put_Line" command). That's my problem. When I run program, all ok. But if debug-exit with "[Inferior 1 (process X) exited with code 1]" on "Put_Line" with or without breakpoint.