October 30, 2025, 02:22:30 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Debug question.

Started by J B Wood (Zumwalt), September 08, 2006, 07:12:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

J B Wood (Zumwalt)

Say I have a game and I want to print out info to the Debug tab while it is running.
What is the basic command to print to it?
Debug.Print("something");

??

Parker

You should use the OutputDebugString API:
import void OutputDebugString alias "OutputDebugStringA" ( string str );

I think there is also an OutputDebugStringW which takes a wstring argument.

J B Wood (Zumwalt)

Thanks, this is the result of your suggestion and it works:


declare cdecl import, OutputDebugStringA(string str);