Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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: 1 Guest(s)