It is very helpful to determine what is being passed without having to step through the debugger. In compiled code the debugger isn't an option. The 4D v11 SQL Pasteboard can be a handy debugging aid.
Below is a simple method that can be added to a database to implement use of the SET TEXT TO PASTEBOARD command in debugging. Pepper calls to this method in spots of interest in your code. It can be turned on and off by a Boolean interprocess variable, <>Debugging_B. Place calls to it in places of debugging interest and after the run, go to your favorite text editor and "Paste" the text in. There you have a quick and easy debug trace log.
If (<>Debugging_B) `// Make sure this boolean is defined early in the application
`======================== Method Actions ==================================
$Buf_T:=Get text from pasteboard+"\r\r"
SET TEXT TO PASTEBOARD($Buf_T)
SET TEXT TO PASTEBOARD($Caller_T+": "+$TextToPaste_T)
`======================== Clean up and Exit =================================
To test, run the following code and then "Paste" into your favorite text editor.
$MethodName_T:=Current method name
UTIL_PasteboardDebugLogger ($MethodName_T;"Paste";"This is paste #1")
UTIL_PasteboardDebugLogger ($MethodName_T;"Append";"This is paste #2")
UTIL_PasteboardDebugLogger ($MethodName_T;"Append";"This is paste #3")