将清单文件与 SymChk 配合使用Using a Manifest File with SymChk

在某些情况下,您可能需要检索位于独立的计算机; 的文件的符号即,计算机不在任何网络上或位于具有无符号存储区的网络。In some cases, you might need to retrieve symbols for files that are on an isolated computer; that is, a computer that is either not on any network or is on a network that has no symbol store. 在这种情况下,可以使用以下过程来检索的符号。In that situation, you can use the following procedure to retrieve symbols.

  1. 运行与 SymChk /om参数来创建描述您想要检索的符号的文件的清单文件。Run SymChk with the /om parameter to create a manifest file that describes the files for which you want to retrieve symbols.

  2. 将清单文件移动到具有符号存储区的网络。Move the manifest file to a network that has a symbol store.

  3. 运行与 SymChk /im参数,检索在清单文件中所述的文件的符号。Run SymChk with the /im parameter to retrieve symbols for the files described in the manifest file.

  4. 将符号文件移回的独立计算机。Move the symbol files back to the isolated computer.

示例Example

假设 yourApp.exe 独立计算机上运行。Suppose yourApp.exe is running on an isolated computer. 以下命令创建描述调试 yourApp.exe pocess 所需的所有符号的清单文件。The following command creates a manifest file that describes all the symbols needed to debug the yourApp.exe pocess.

C:\>SymChk /om c:\Manifest\man.txt /ie yourApp.exe

SYMCHK: FAILED files = 0
SYMCHK: PASSED + IGNORED files = 28

现在假定您已移到符号存储区中有权访问的网络上的其他计算机的清单文件。Now assume you have moved the manifest file to a different computer that is on a network that has access to a symbol store. 以下命令检索在清单文件中所述的符号,并将其置于 mySymbols 文件夹中。The following command retrieves the symbols described in the manifest file and places them in the mySymbols folder.

C:\>SymChk /im c:\FolderOnOtherComputer\man.txt /s srv*c:\mysymbols*\\aServer\symbols

SYMCHK: myApp.exe             ERROR - Unable to download file. Error reported was 2
. . .
SYMCHK: FAILED files = 28
SYMCHK: PASSED + IGNORED files = 28

现在可以将这些符号移动到独立的计算机,并将它们用于调试。Now you can move the symbols to the isolated computer and use them for debugging.