Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BAM Debugging features
#1
Until I get around to building in some substantial features, the following took me all of a half hour to setup just to have something useful:

   
Reply
#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




Users browsing this thread: 2 Guest(s)