Jump to content

API Debug.PrintLn: Difference between revisions

From Flowcode Help
Admin (talk | contribs)
XML import
JonnyW (talk | contribs)
No edit summary
Line 19: 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.
 
Unlike [[API Debug.Print|Print]], the PrintLn will automatically add a new-line after the text is printed. This is useful for more compact flowcharts.




Line 26: Line 30:
* Add to a calculation icon: <pre class="brush:[cpp]">::Debug.PrintLn("output")</pre>
* Add to a calculation icon: <pre class="brush:[cpp]">::Debug.PrintLn("output")</pre>


''<span style="color:red;">No additional information</span>''
===Example flowchart===
This example shows simple usage of both Print and PrintLn:
 
[[file:SIM_Debug.Print.fcf]]

Revision as of 23:47, 3 June 2013

<sidebar>API contents</sidebar> Prints out the string or value with a new-line in the debug window

Class hierarchy

Debug

PrintLn

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.

Unlike Print, the PrintLn will automatically add a new-line after the text is printed. This is useful for more compact flowcharts.


Examples

Calling in a calculation

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

Example flowchart

This example shows simple usage of both Print and PrintLn:

File:SIM Debug.Print.fcf