Difference between revisions of "API Debug.Print"

From Flowcode Help
Jump to navigationJump to search
(XML import API auto-gen)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<sidebar>API contents</sidebar>
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
Prints out the string or value on a line in the debug window
+
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Print'''
 +
|-
 +
| colspan="2" | Prints out the string or value on a line in the debug window&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
 +
| width="90%" | Output
 +
|-
 +
| colspan="2" | Text to display&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - NONE
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
===Parameters===
+
==Detailed description==
''[[Variable types|STRING]] Output''
+
This is a debug diagnostic call to allow text to easily be outputted during events to trace what a program is doing.
:Text to display
 
  
===Return value===
+
During an event, breakpoints can not be used. Calls like this help establish if a flowcharts logic is sound.
''This call does not return a value''
 
  
===Detailed description===
+
==Examples==
''No additional information''
+
===Calling in a calculation===
 +
* Add to a calculation icon: <pre class="brush:[cpp]">::Debug.Print("output")</pre>
  
===Examples===
+
===Example flowchart===
====Calling in a calculation====
+
This example shows simple usage of both Print and PrintLn:
* Add to a calculation icon: ::Debug.Print("output")
+
 
 +
{{Fcfile|SIMAPI_Debug_Print.fcfx|SIMAPI_Debug_Print}}

Latest revision as of 11:42, 16 January 2023

Fc9-comp-macro.png Print
Prints out the string or value on a line in the debug window 
Fc9-string-icon.png - STRING Output
Text to display 
Fc9-void-icon.png - NONE Return


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