IonicWind Software

Aurora Compiler => General Discussion => Topic started by: John S on March 10, 2007, 07:40:29 PM

Title: debugger question
Post by: John S on March 10, 2007, 07:40:29 PM
The debugger is a handy tool, but only know the smallest amount of how to you it.

How does one:
    1.  List/watch variables in the debugger

    2.  Besides #Ifdef/#enddef, #break and OutputDebugStringA(), what other compiler commands are there?  How can the other commands be used?

Title: Re: debugger question
Post by: Parker on March 11, 2007, 12:50:56 PM
1. I'm not familiar with the debugger, but I think you just switch to the variables tab.

2. List of commands starting with a '#':
#undeclare <<id>> - removes a declare from the symbol table
#typedef <<id>> <<type>> - defines a type alias
#use <<string>> - adds a library reference
#autodefine "on"/"off" - turns on/off automatic definition of variables
#option <<string>> - turns on specific options in the compiler (currently you can only specify "float" or "double", changes whether decimal numbers default to the float type or double type)
#break - creates a debugger breakpoint
#asm <<lines...>> #endasm - inserts asm code directly into the output
#emit <<line>> - inserts one line of asm into the output
#ifdef <<id>> - begins a conditional block if <<id>> is defined
#ifndef <<id>> - begins a conditional block if <<id>> is not defined
#else - else for #ifdef/#ifndef conditional blocks
#define <<id>> (<<expression>>) - defines a preprocessor variable. If you omit <<expression>>, it is just simply "defined", otherwise it can be used as a constant in the source file.
#include <<string>> - includes another file (please don't use this on source files, only includes)

The OutputDebugString function is just a normal function. It is inside the debugger DLL though, which is why it makes things show up in the IDE.
Title: Re: debugger question
Post by: John S on March 11, 2007, 01:06:53 PM
thanks Parker,
I'm already using the #IFDEF, #ENDIF, #INCLUDE & #DEFINE
I may try some of these other #commands.
Title: Re: debugger question
Post by: Parker on March 11, 2007, 01:34:34 PM
Just for your information:
#break
is the same thing as
#emit int 3

And I think you need a breakpoint to be able to watch variables. Again though, I'm not very familiar with this so I could be wrong.
Title: Re: debugger question
Post by: John S on March 11, 2007, 01:55:55 PM
thanks Parker,
I'm post a couple programming questions I have regarding Aurora in a different section.  Feel free to answer them.