Text Interpreter Sample

The text interpreter sample is a custom debug engine (DE) built from the Visual Studio Debugging SDK base classes that are shipped with the SDK documentation. You can access this sample from the VSIP installation, for example, C:\Program Files\Visual Studio 2008 SDK\<version>\Archive\Debugging SDK\Text Interpreter.

The text interpreter sample was initially created by following the steps in the debug engine tutorial (see Tutorial: Building a Debug Engine Using ATL COM). Three additional features have been added in this sample:

  1. Loading an expression evaluator.

  2. Support for viewing and modifying memory in a Memory window.

  3. Support for viewing and modifying a custom set of registers in the Registers window.

注意

This TextInterpreter sample is otherwise the same as the one presented in the tutorial and as a result, does not perform any true debugging functionality in that it does not support stepping through code in any way. However, features such as supporting an expression evaluator and the Memory and Register windows can be shown with dummy data.

Because the TextInterpreter sample does not actually load any symbols, the expression evaluator is limited only to decimal and hexadecimal numbers. So in the Command window, you can type "1 + 3" and get an answer of "4" but you cannot type "x + y" as an error occurs.

To run the text interpreter sample

  1. Open the TextInterpreter.sln file in the sample folder.

    Visual Studio opens.

    The TextInterpreter project appears in Solution Explorer.

  2. Right-click the project and select Properties.

    The TextInterpreter Project Pages dialog box appears.

  3. From the Build menu, choose Build Solution.

    The text interpreter DE is built.

  4. To test the DE, see Starting the Text Interpreter Program.

See Also

Concepts

Tutorial: Building a Debug Engine Using ATL COM

Visual Studio Debugging Samples