IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Rock Ridge Farm (Larry) on January 12, 2006, 05:56:30 AM

Title: Debug questions
Post by: Rock Ridge Farm (Larry) on January 12, 2006, 05:56:30 AM
I would like to display the values of variables.
some are int, some are string.
Is there a way to do that?
Can I use printf in a win exe?
Title: Re: Debug questions
Post by: Ionic Wind Support Team on January 12, 2006, 06:16:18 AM
You can just use WriteLn and the console.

Or build a debug executable and use this function:

DECLARE IMPORT,OutputDebugStringA(lpOuputString as STRING);

Any thing you send to this function will show up in the debug pane of the IDE....running in debug mode of course.

OutputDebugStringA(STR$(var));

"printf" is part of the standard C library and outputs to the console.
Title: Re: Debug questions
Post by: Rock Ridge Farm (Larry) on January 12, 2006, 07:40:48 AM
That worked great - Thanks
Title: Re: Debug questions
Post by: Parker on January 12, 2006, 08:19:41 AM
It's a debug question...
How does the compiler know when to define the DEBUG symbol? Is there a command line argument that I don't know about?
Title: Re: Debug questions
Post by: Rock Ridge Farm (Larry) on January 12, 2006, 08:57:13 AM
I would think the 'Declare Import' function is turning it on.
Title: Re: Debug questions
Post by: Ionic Wind Support Team on January 12, 2006, 09:55:38 AM
/dDEBUG