Difference between revisions of "API Debug.Print"

From Flowcode Help
Jump to navigationJump to search
(XML import)
(XML import)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<sidebar>API contents</sidebar>
+
<sidebar>API Contents</sidebar>
 
Prints out the string or value on a line in the debug window
 
Prints out the string or value on a line in the debug window
  
Line 10: Line 10:
  
 
==Parameters==
 
==Parameters==
[[Variable types|STRING]] ''Output''
+
[[Variable Types|STRING]] ''Output''
 
:Text to display
 
:Text to display
 +
  
 
==Return value==
 
==Return value==
Line 18: Line 19:
  
 
==Detailed description==
 
==Detailed description==
''<span style="color:red;">No additional information</span>''
+
This is a debug diagnostic call to allow text to easily be outputted during events to trace what a program is doing.
  
 +
During an event, breakpoints can not be used. Calls like this help establish if a flowcharts logic is sound.
  
 
==Examples==
 
==Examples==
Line 25: Line 27:
 
* Add to a calculation icon: <pre class="brush:[cpp]">::Debug.Print("output")</pre>
 
* Add to a calculation icon: <pre class="brush:[cpp]">::Debug.Print("output")</pre>
  
''<span style="color:red;">No additional information</span>''
+
===Example flowchart===
 +
This example shows simple usage of both Print and PrintLn:
 +
 
 +
{{Fcfile|SIMAPI_Debug_Print.fcfx|SIMAPI_Debug_Print}}

Latest revision as of 15:57, 16 January 2014

<sidebar>API Contents</sidebar> Prints out the string or value on a line in the debug window

Class hierarchy

Debug

Print

Parameters

STRING Output

Text to display


Return value

This call does not return a value


Detailed description

This is a debug diagnostic call to allow text to easily be outputted during events to trace what a program is doing.

During an event, breakpoints can not be used. Calls like this help establish if a flowcharts logic is sound.

Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Debug.Print("output")

Example flowchart

This example shows simple usage of both Print and PrintLn:

FC6 Icon.png SIMAPI_Debug_Print