dbpause

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

similar to pause, but shows the calling fnct and if dbprintmode is on, jumps to the line

Description

Debug function of Tim Lueth
dbprintf
dbpause
dbsave
dbreturn
dbprintmode


See Also: dbprintf , dbreturn , dbsave , dbprintmode

Example Illustration

 missing image of dbpause(str,str2)

Syntax

ch=dbpause([str,str2])

Input Parameter

str: string, if there is no time, or zero or seconds
str2: prompt if a time is used

Output Parameter

ch: key character that was used in the graphics figure to continue after pause




Copyright 2021-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, dbpause, is a debugging utility designed to pause the execution of a MATLAB script, providing information about the calling function and allowing for user interaction. It is part of the SolidGeometry library.

Input Parameters

Output

Algorithm Steps

  1. Initialize the current character of the figure to char(0).
  2. Retrieve the input parameters str and str2 using getfuncparams.
  3. Determine the title of the calling function using titleofcaller.
  4. If str is numeric:
  5. If str is not numeric:
  6. Retrieve the current character from the figure using get(gcf,'CurrentCharacter').
  7. If str is numeric and greater than 1, print a newline.
  8. Call commandwindowTL to focus on the command window.
Algorithm explaination created using ChatGPT on 2025-08-19 07:58. (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