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

Volker Wysk <[email protected]>
Newsgroups gmane.comp.lang.mercury.general
Message-ID <[email protected]>
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+K4ydFOsHoUFAmNOptwACgkQ+K4ydFOs
HoUogBAA2AOCSAEiGHWwRNnScH5SnHU0KRXaumGmWg6kkpYod8xsO+YQwoRJD/aS
3jNQVlotHED/EosdDR22Mz/ii2XHP2fKdj+lxBnqfRB3uBur6e+0pv1KL7K2dlgA
X5Sp6Iw0JJEhCKn3lE6/ykTp+jJEMaBTp5Vnl+df/sjMfAmqHeEr3+68J4NILegM
qSAG2LphW0YB+YWagS1HHoUdOKW6FzKixDJksN28xOZmPdsmoAT4pOM8pOTtro7M
+IXhmJ2OkG2B9JVfgLNoRxlsZM/XjpBtk5aJRfU0Qviv5yGr+UwA/tBNObbi7MuR
Esaca+GGMRpbzfCYY/0Ej3q8oyx8+baeVvR6UQ8xbX9U4t7No1g3E7V4K1l7qBvc
PPwfPIVu9iWrDNuXqJ9KbKr9nW7beF7oQ4+M1tru35tR3GHQ3rETeR/k8SojgVdl
8SCsOD5Ml83H+q4wmPencVR2dusLNbFzAn0rn+jk37WumBgELpt2WENS3uHib4yJ
LlmQ0JNqVbveZC9Tqmzi96+SLrNVkTN5+MnQp4pPSac4enTP6JVjdrIpVfPvia2j
FFazXl9iXb6WIcKjZl0B3D46TOyZ3kAszCf0v8n8Oq2hTsf1p6E0st+fKoKyP7BO
grxKd45zN/FCZSSEqNxWU5ll9ehxkTs/RFRrXeABr8DjwLJSa6Q=
=SJqw
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.