Debugging Tools for Windows

HangActions

The HangActions section enables you to select the actions that you want to take when you are running ADPlus in hang mode.

<HangActions>
     <Option> MiniDump </Option>
     <Option> FullDump </Option>
     <Option> NoDump </Option>
     <Option> Clear </Option>
     <Actions> Actions  </Actions> 
     <CustomActions> CustomActions  </CustomActions>
</HangActions>

The parameters have the following meanings:

MiniDump
Generates a mini dump.
FullDump
Generates a full dump.
NoDump
No dump is created in hang mode.
Clear
Clears all selections. Typically, you use this command before you define your own actions with the tags later in this topic.
Actions
Enables you to select the set of actions to be taken in hang mode.

You can use the following actions (which are not case sensitive):

MiniDump
Creates a minidump
FullDump
Creates a full dump.
NoDump
Does not create a dump.
Stacks
Lists all thread call stacks into the log.
LoadedModules
Lists all loaded modules.
MatchingSymbols
Lists all modules that have matching symbols.
Heap
Executes the !heap extension.
Handle
Executes the !handle extension.
Dlls
Executes the !dlls extension.
Locks
Executes the !ntsdexts.locks extension.
ThreadUsage
Executes the !runaway extension.

Separate multiple actions with semicolons, as follows.

<Actions> MiniDump;Stacks;Heap  </Actions>

CustomActions
Enables you to select additional actions to be taken in hang mode. You can include any debugger commands that are available in CDB, as follows.

<CustomActions> !runaway;!heap </CustomActions>

The following example shows a complete <HangActions> section.

<HangActions>
      <Option> Clear </Option>
      <Actions> Stacks;FullDump;LoadedModules  </Actions> 
</HangActions>

Build machine: CAPEBUILD