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: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost2.xs4all.net!news.kpn.nl!not-for-mail Subject: Re: How to convert a certain value to text Newsgroups: comp.lang.ada References: <5e8adbd9$0$18429$e4fe514c@news.kpn.nl> From: ldries46 Date: Mon, 6 Apr 2020 16:02:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: nl Message-ID: <5e8b367f$0$1690$e4fe514c@news.kpn.nl> NNTP-Posting-Host: dd9de2f4.news.kpn.nl X-Trace: G=HX8nMtAi,C=U2FsdGVkX19MerYp5ZCNt0tKuVaqfT49YO06x49TyJLGMciPG2z6hDpFI/MS6AKRRdduwbY6UzHCr9GV3azei8K5P1lr7Nvlmz7Nk15xst4= X-Complaints-To: abuse@kpn.nl Xref: reader01.eternal-september.org comp.lang.ada:58319 Date: 2020-04-06T16:02:38+02:00 List-Id: Op 6-4-2020 om 14:59 schreef Simon Wright: > ldries46 writes: > >> I am testing a program that makes the following Error: >> raised CONSTRAINT_ERROR : glade_convert.adb:286 access check failed >> That happens on the line >> Get_Iter_At_Mark(Buffer, Iter_With, with_mark); >> When running the program in debug mode the program never reaches this >> line and seems to be in a loop somewhere. That means that I do want to >> try and print some values in run modeThat must be the values of >> f.i. with_mark but while compiling I get image attribute cannot be >> used for a no scalar. >> How can I still print it. > You write your own function Image to convert the type to string (you > may have to take extra measures if that type is private, e.g. makint > that function a child of the package in which the type is declared). > > Or, you could learn to use the debugger? I am sorry but I think I know how to use the debugger. But the debugger does not stop a line 286 although i have set a breakpoint at the start of that line. I have added a lot of statements later on to follow where the program is and now I can stop at line 285. I have tried all the tricks from the past when the olderr version of the debugger still was around (I mean the version with the graphical interface). Writing my own version of image is not an option because I only have to know which parameter of the procedure creates the constraint error Buffer, Iter_With or with_mark