Showing value of a MP variable
Hello, is it possible (namely for debugging) values of MP variables (be it on the console or in the log)? I thought there is MP command "show" (mentioned in mpman.pdf) for this; but: ---- \starttext A \startMPcode newpair pt; pt := (10,20); show pt; % <-------------------------- How to show the value? drawdot pt; \stopMPcode \stoptext ---- doesn't show value of 'pt' variable. Best regards, Lukas -- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS: nrpt3sn | IČO: 40763439 Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396
On Fri, 08 Mar 2019 17:05:02 +0100
Procházka Lukáš Ing.
is it possible (namely for debugging) values of MP variables (be it on the console or in the log)?
I thought there is MP command "show" (mentioned in mpman.pdf) for this
message(pt) ; puts it into the (context) log. show is a MetaPost command that will get included in the log with: \enabletrackers [metapost.showlog] Alan
participants (2)
-
Alan Braslau
-
Procházka Lukáš Ing.