Re: [m-users.] mmc --debug and mdb usage problems
Julien Fischer <[email protected]>
| Newsgroups | gmane.comp.lang.mercury.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 18 Oct 2022, Volker Wysk wrote: > Am Dienstag, dem 18.10.2022 um 15:31 +0530 schrieb Razetime: >> All the programs I have tried to compile are from here: >> https://github.com/razetime/aoc/tree/main/16 >> Using the guide: >> https://mercurylang.org/information/doc-release/mercury_user_guide/Quick-overview.html#Quick-overview >> My installation was from the debian package repository, given here: >> http://dl.mercurylang.org/deb/. My OS is Ubuntu 20.02 (fossa) >> I would like to know if I am doing any steps wrong, or my install is >> not correct. >> >> I have tried to compile and build a program with imported module, >> which gives the following error: >> $ mmc --debug --make a07 >> mercury_compile: error: the Mercury standard library cannot be found in grade >> `asm_fast.gc.debug'. >> >> mmc --debug a01 runs quietly with no output, and mdb ./a01 after that >> just runs the program as is with no debugger controls appearing. > > Compiling for debugging isn't done with the "--debug" parameter, but by > choosing a grade with debug support. > > Use this to list the installed grades: > > mmc --output-libgrades|sort As of Mercury 22.01 you should use the --output-stdlib-grades option to print the list of installed grades. (The reason is that its output is not affected by any options in Mercury.options files etc. where as the output of --output-libgrades is.) > Chose one with "debug" in it and specify it with "--grade" to the compiler. Or with "decldebug" in it. Julien. _______________________________________________ users mailing list [email protected] https://lists.mercurylang.org/listinfo/users