Debugging Tools for Windows

PreCommands

The PreCommands section has the following format.

    <PreCommands>
       <Cmd> some command  </Cmd>
       <ShellSync> some command line </ShellSync>
       <ShellAsync> some command line </ShellAsync>
    </PreCommands>

With the <Cmd> tag, you can define additional debugger commands that you want to include in the final script, before the commands that are related to each exception are defined. You can include multiple <Cmd> tags. The related text has to be a command that the CDB debugger understands. For example, you could use the following text to load a custom extension.

<Cmd> .load SomeExtension.dll </Cmd>

With the <ShellSync> and <ShellAsync> tags, you can define an application that you want to be run before ADPlus starts to attach to the selected processes.

You can run these applications synchronously or asynchronously.

These applications are run only one time, regardless of how many processes you are attaching to.

The following example shows the ShellSync element.

<ShellSync> notepad.exe c:\myfolder\somefile.txt </ShellSync> 

Build machine: CAPEBUILD