Debugging:  


Debugging

BlitzMax provides several commands to help with debugging your programs:

Assert is particularly useful for validating function arguments. For example:

Function SetAlpha( alpha# )
	Assert alpha>=0 And alpha<=1 Else "Alpha value out of range"
	'rest of function here...
End Function
However, since asserts are taken out in release mode, be careful that your asserts don't have any 'side effects' - code that may affect the execution of the program.