Using the Debugger

From ADRIFT 5 Manual Wiki
Revision as of 07:24, 19 February 2013 by Saabie (Talk | contribs) (Events)

Jump to: navigation, search

The debug window is opened from the ADRIFT runner by selecting View/Debugger from the menu.

DebugLow.jpg

On the left is a tree-view that shows all of the items present in the game being played. At the top are controls that let you choose the level of detail to show in the log window, and whether or not to show the time it takes to execute each command. Below that is a large text pane where the debug log messages will be displayed.

The tick next to the item types in the tree-view allow you to limit the log messages so that only those that are relevent to the selected item types are displayed. By clicking on the + icon next to the item type you can display a complete list of all of the items of that type that exist in the current game. Each of these also has a tick next to it, so you could turn off log messages for all objects and then re-enable them for one or two particular objects.

Variables

DebugVar.jpg

If you click on the name of a variable in the tree-view, then the debugger will display the current value of that variable at the bottom of the tree-view pane.

This value is editable, so if you type a new value into this box then the value of the variable in the game is instantly changed.

For integer variables you must type a number, but for text variables you can enter anything.

This allows you to change any of the variables in the game as you play it. For example, if the game chooses a random value for a variable, but you want to test what happens with a particular value, then you can just type it in.

Events

DebugEvent.jpg

If you click on an event in the tree-view, then the current status of that event (Counting down, Finished, Not yet started, Paused or Running) will be displayed below the tree-view.

By clicking on the arrow next to the displayed status, you are able to change the status of the event. For example you could re-start an event which has finished.

Tasks

DebugTask.jpg

The log window

Low Detail

DebugLow.jpg

Medium Detail

DebugMed.jpg

High Detail

DebugHigh.jpg


<<< MacrosMain PageModules >>>