QB64 Phoenix Edition
BAM Debugging features - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1)
+--- Forum: QBJS, BAM, and Other BASICs (https://staging.qb64phoenix.com/forumdisplay.php?fid=50)
+--- Thread: BAM Debugging features (/showthread.php?tid=1158)



BAM Debugging features - CharlieJV - 11-20-2022

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:

   


RE: BAM Debugging features - CharlieJV - 11-21-2022

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