XXprintmode

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Debug
Introduced first in SolidGeometry 5.4, Creation date: 2024-08-09, Last change: 2025-09-15

switches on the possibility to reach code lines when using dbprintf fnct

Description

In SGLib 5.4, the concept of executed comments has been introduced. This function allows to switch on and off the comments on the screen output in addition to the file comment protocol

See Also: XX , XXreadcomment

Example Illustration

 missing image of XXprintmode(md)

Syntax

XXmode=XXprintmode([md])

Input Parameter

md: true or false; default is true;

Output Parameter

XXmode: true or false

Examples

% can be tested only within functns that uses the XX comment concept

XXprintmode on
XXprintmode off




Copyright 2024-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, XXprintmode, is part of the SG-Library and is used to control the display of comments in the output. It allows users to toggle the visibility of comments in the screen output, which is useful for debugging and understanding the flow of execution.

Input Parameters

Output Results

Algorithm Steps

  1. The function begins by retrieving the input parameter md using the getfuncparams function. If no parameter is provided, it defaults to 'on'.
  2. If md is a string and equals 'off', it is converted to false. If it equals 'on', it is converted to true.
  3. A global variable SGXXprintmode is used to store the current state of the print mode.
  4. If md is false:
  5. If md is true:

Example Usage

The function can be tested within functions that use the XX comment concept. For example:

Algorithm explaination created using ChatGPT on 2025-08-19 07:06. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21