API Debug.PrintLn: Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''PrintLn''' | ||
|- | |- | ||
| colspan="2" | Prints out the string or value | | colspan="2" | Prints out the string or value on a line in the debug window (with optional info when 'Extended debug features' is set | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:39, 7 August 2026
| PrintLn | |
| Prints out the string or value on a line in the debug window (with optional info when 'Extended debug features' is set | |
| Output | |
| Text to display | |
| 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.
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: