Showing value of a MP variable
![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/6e50a7aa57f5569d881f204f124d96ef.jpg?s=120&d=mm&r=g)
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.