[m-users.] Fwd: Re: mmc --debug and mdb usage problems
Volker Wysk <[email protected]>
| Newsgroups | gmane.comp.lang.mercury.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Razetime sent this by accident to me personally, not to the list. Volker -------- Ursprüngliche Nachricht -------- Von: Razetime <[email protected]> An: Volker Wysk <[email protected]> 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 <[email protected]> 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 > _______________________________________________ users mailing list [email protected] https://lists.mercurylang.org/listinfo/users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmNOvOgACgkQ+K4ydFOs HoUS4xAAj0n1bmPa5lg6YSs/xchS/9MMErV+yCRX7qHiQ6lqQXTwLVjBclhoZbJw bVCkf+vRQ2SxkURiThqEkMdzuuWuLXOAufj3gs09HpBvgxdKK38PXXKmqHEQE2fI hkCdzz6QcZ1wf52NwdRo8ccRWS9sfmqKT6q+MEOqLRabd/DAFVjurq7G4uvZcu9s ocItVZnd/daEwQiQIptE7mrd/rOQPIO5ORvAMybI/e+Juwyu6Z895syMxqXZEqnY /lGbUSTIGOiRhce2ynbvxvnXqiATRoxnSXp5ZL5ijUN0OaIX9L2zKf2+8JuUml2s Vy3N/7wf0VAKWvtWBwLu9681teVVXSpdnHrNbU902P2MoXe5trbnLAsv8IhqP41D cmomfw/j3ecQx1KtyRfFtPCa1EAh3IJp7KJKR4MKamM1N7WhTfzg+oFAPukodeH5 9DivtYrLuLzvvWky5rc1+ouLQx8nB0hb0L12Nges3iwx1WAY4kOjOkXNd8v3Pggb 9lBaElH5mVvN2U8pZxVkKEHUxgf0nCGhu9zGCTCca4dGU+u5jxNG0lOs14lAp9p+ gHO4hyhRPrnueaJbFzDXxNHNArmDb8hFIA9qbE5JVJD4t33tgKh2SjTUSpOuc5UR EkspSFXBBUuk8WrfvVnkDFl6pLTQt+e/yYMU8mqiPfD+vTPdeiQ= =/4PW -----END PGP SIGNATURE-----