Difference between revisions of "DEBUG"

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

Latest revision as of 14:59, 13 January 2011

Up

Command

DEBUG
DEBUG [<caption>], <var name>, <var name>... (between 1 and 50 variables)


Show the current value of macro variables.

Parameters

Optional caption text.
<var name>
Variable name

Example

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


For an example macro see Calc_Geo_Extents