BAM Debugging features
#2
A multi-line (spread out in an application) example:

Code: (Select All)
<<debug """
def fn_add_to_msg$(msg$, add$) = msg$ + add$ + chr$(13)
""">>

A = 5
B$ = "whatever"

<<debug """
  dmsg$ = fn_add_to_msg$( dmsg$, "DEBUG INFO AT POSITION XYZ" )
  dmsg$ = fn_add_to_msg$( dmsg$, "==========================" )
  dmsg$ = fn_add_to_msg$( dmsg$, "A = " + A )
  dmsg$ = fn_add_to_msg$( dmsg$, "B$ = " + B$ )
  _alert( dmsg$ )
"""
>>

print "hello world!"
end
Reply


Messages In This Thread
BAM Debugging features - by CharlieJV - 11-20-2022, 11:16 PM
RE: BAM Debugging features - by CharlieJV - 11-21-2022, 07:02 PM



Users browsing this thread: 2 Guest(s)