* Showing value of a MP variable
@ 2019-03-08 16:05 Procházka Lukáš Ing.
2019-03-08 16:33 ` Alan Braslau
0 siblings, 1 reply; 2+ messages in thread
From: Procházka Lukáš Ing. @ 2019-03-08 16:05 UTC (permalink / raw)
To: ConTeXt
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Showing value of a MP variable
2019-03-08 16:05 Showing value of a MP variable Procházka Lukáš Ing.
@ 2019-03-08 16:33 ` Alan Braslau
0 siblings, 0 replies; 2+ messages in thread
From: Alan Braslau @ 2019-03-08 16:33 UTC (permalink / raw)
To: Procházka Lukáš Ing.; +Cc: mailing list for ConTeXt users
On Fri, 08 Mar 2019 17:05:02 +0100
Procházka Lukáš Ing. <LPr@pontex.cz> wrote:
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-08 16:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-08 16:05 Showing value of a MP variable Procházka Lukáš Ing.
2019-03-08 16:33 ` Alan Braslau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).