Difference between revisions of "DEBUG"

From Macros Wiki
Jump to: navigation, search
Line 1: Line 1:
 
[[:Category:Debug|{{Up}}]]
 
[[:Category:Debug|{{Up}}]]
  
{{Command|syntax=[[Image:debug.png|right|DEBUG]]DEBUG <caption>, <nowiki><var name></nowiki> (max 50 variables)
+
{{Command|syntax=[[Image:debug.png|right|DEBUG]]DEBUG [<caption>], <nowiki><var name></nowiki> (max 50 variables)
 
|description=:Show the current value of macro variables.
 
|description=:Show the current value of macro variables.
  
|param1=<caption>|param1_desc={{label text}}
+
|param1=<caption>|param1_desc=Optional caption text.
 
|param2=<nowiki><var name></nowiki>|param2_desc=Variable name
 
|param2=<nowiki><var name></nowiki>|param2_desc=Variable name
 
}}
 
}}
  
 
===Example===
 
===Example===
:DEBUG "deubug example", r1, a1
+
:DEBUG r1, a1
:DEBUG "deubug example2", a$, q1
+
:DEBUG "debug example", a$, q1
 
<br>
 
<br>
 
:For an example macro see  [[Calc_Geo_Extents]]
 
:For an example macro see  [[Calc_Geo_Extents]]
  
 
[[Category:Debug]]
 
[[Category:Debug]]

Revision as of 13:58, 13 January 2011

Up

Command

DEBUG
DEBUG [], <var name> (max 50 variables)


Show the current value of macro variables.

Parameters

<caption>
Optional caption text.
<var name>
Variable name

Example

DEBUG r1, a1
DEBUG "debug example", a$, q1


For an example macro see Calc_Geo_Extents