Debug Mod
BlitzMax Forums/BlitzMax Module Tweaks/Debug Mod
| ||
All I have created (beta - kita.mmdebug) a module that outputs debug message toa window interactivly during execution. This can also be logged to as file. Reasons for doing this:- - Learn BlitzMax, its types/classes and how to build modules. - To assist me in debugging my later programs. - Learn how to compile binary data into a exe/module. - Internal Debug command is limited (i.e. cannot view within on program). The files can be downloaded at the following link. http://home.btconnect.com/mark_marshall/Blitz/Mods/. Please provide feedback. I have provided documentation. Info .... Its my first project in BlitzMax (only bought it yesterday) and have only been using Blitz3d in anger for 2 weeks. Luckily I have had 25 years programming experience (14 commercial). I am impressed with BlitzMax (ahhh classes ... errr ... types ;-) ). One questions has anyone come across a way of managing errors?? I may be missing something. Ideally around the try/catch theme of C-Build, C# and C++. |
| ||
Check out the Exceptions page of the help for Try, Catch and Throw. |
| ||
Mark Marshall say: >> I have had 25 years programming experience (14 commercial). >> I am impressed with BlitzMax... Please stick it to the index.php :D . Concerning your problem: Rem Catch defines an exception handler following a Try..EndTry Block. End Rem Try repeat a:+1 print a if a>20 throw "chunks" forever Catch a$ print "caught exception "+a$ EndTry |