[m-users.] Fwd: Re: mmc --debug and mdb usage problems

Volker Wysk post at volker-wysk.de
Wed Oct 19 01:49:12 AEDT 2022


Hi

Razetime sent this by accident to me personally, not to the list.

Volker

-------- Ursprüngliche Nachricht --------
Von: Razetime <rraghu.11502 at gmail.com>
An: Volker Wysk <post at volker-wysk.de>
Betreff: Re: [m-users.] mmc --debug and mdb usage problems
Datum: Tue, 18 Oct 2022 20:08:18 +0530

> You can use the "browse" command to examine the value.
> (Do "help browse" at the mdb> prompt for information.)

`browse' was perfect. Luckily, I was able to spot the problem. I was
attempting to do set(int, int, T, array2d(T), array2d(T)), but the
first array2d was getting modified and making me lose my hair.

On 10/18/22, Volker Wysk <post at volker-wysk.de> wrote:
> Am Dienstag, dem 18.10.2022 um 18:24 +0530 schrieb Razetime:
> > Thanks, rebuilding made it work correctly.
> > In the debugger i'm trying to print a variable that contains a value
> > of type array2d:
> > 
> > mdb> print 8
> >        LambdaHeadVar__3 (arg 8) array2d(3, 7, <<array>>/21)
> > mdb> print -v 8
> >        LambdaHeadVar__3 (arg 8)
> > array2d
> > 1-3
> > 2-7
> > 3-<<array>>/21
> > 
> > mdb> print -p 8
> >        LambdaHeadVar__3 (arg 8)
> > array2d(3, 7, ...)
> > 
> > how do I make it display all data inside the array2d?
> 
> I don't know. Perhaps with the "browse" command. Or by specifing a "term
> path", like in "print 8^3". See here:
> 
> https://mercurylang.org/information/doc-release/mercury_user_guide/Browsing-commands.html
> 
> 
> Something different: You can enable command line editing with the "rlwrap"
> command. It will call the specified program, with command line editing
> added:
> 
> rlwrap mdb ...
> 
> In Ubuntu Linux, this is in the "rlwrap" package.
> 
> 
> Bye
> Volker
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20221018/e949f0cf/attachment.sig>


More information about the users mailing list