How Do I Debug in smartBASIC?

Answer

Include the following code in the smartBASIC script: '//****************************************************************************** '// Function and Subroutine definitions '//****************************************************************************** '//debug Subroutine Sub DbgAssertRC(byval tag as integer) ? if rc != 0 then ? ? print "

Failed with "; integer.h' rc;" at tag "; tag ? endif endsub '//User will insert 'DbgAsserRC()' in code to assist when error(s) may occur.