Skip to main content

getDebugInfo

Short summary

This method returns a debug info string

:return: debug info string, it contains the caller method name and the class name. Format is 'ClassName.methodName: Assertion was false'

  • Return type: Tc2_System.T_MaxString

Parameters

NameTypeCommentKind
callerTc2_System.T_MaxStringname of the caller methodinput

Code

Declaration

METHOD PROTECTED getDebugInfo :Tc2_System.T_MaxString
VAR_INPUT
(* name of the caller method *)
caller :Tc2_System.T_MaxString;
END_VAR

Implementation

getDebugInfo := Tc2_Standard.CONCAT(
THIS^.className,
Tc2_Standard.CONCAT(
'.',
Tc2_Standard.CONCAT(
caller,
': Assertion was false'
)
)
);