I'm just now getting serious about learning my PureBasic that I purchased awhile back. I notice in so much of the example code and other code snippets, that debug seems to be the message printer of choice. Why is this? There has to be a reason other than typing a shorter name, but it is escaping me.
Message requester will hault the program until you press ok. If you want to keep track on how a variable is incrementing during the run of an application, you can use the debugger to print out the values without halting the application.
Debug is like Debug.Print in Visual Basic.... it lets you print things during runtime without your program stopping or opening a console.... also any Debug commands are not included in your executable when compiled but a MessageRequester is.
And debug commands are much easier to use.
Because you can use whatever type of variable without having to do str(), strq() and so on. And you don't need to specify a title and so on.
For speed measurements you will have to turn debugger off, and then you can't use the debug command.