You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/debugger/debug-interface-access/dia2dump-sample.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ ms.workload:
20
20
21
21
The Dia2dump sample shows how to use the Microsoft Debug Interface Access Software Development Kit (DIA SDK) to query a PDB file for information.
22
22
23
-
The Dia2dump sample is installed with Visual Studio and contains the solution and source files. The compiled executable runs from the command line and can display the contents of an entire program database (.pdb) file, or just the sections you are interested in.
23
+
The Dia2dump sample is installed with Visual Studio and contains the solution and source files. The compiled executable runs from the command line. It can display the contents of an entire program database (.pdb) file, or just the sections you're interested in.
24
24
25
25
## Install the sample
26
26
@@ -30,7 +30,7 @@ When installed, the sample is in your Visual Studio installation directory, in a
30
30
31
31
## Build the sample
32
32
33
-
Because the installation directory is a protected directory by default, you must use an elevated command prompt or instance of Visual Studio (run as administrator) to build and edit the solution in this location. It may be easier to copy the files from the sample directory to another directory first, and then build the sample. This is the procedure we recommend.
33
+
By default, the installation directory is a protected directory. That means you must use an elevated Developer command prompt or instance of Visual Studio to build and edit the sample solution in this location. To simplify the build, we recommend you first copy the files from the sample directory to another directory, such as a folder in your Documents folder, and then build the sample.
34
34
35
35
### To build the Dia2Dump sample in Visual Studio
36
36
@@ -44,27 +44,27 @@ Because the installation directory is a protected directory by default, you must
44
44
45
45
1. In the **Additional Include Directories** property, choose the dropdown control, then choose **Edit**.
46
46
47
-
1. In the **Additional Include Directories** dialog, in the edit field, enter the `$(VSInstallDir)DIA SDK\include` directory. This guarantees that the compiler can find the dia2.h file. Choose **OK** to save your changes.
47
+
1. In the **Additional Include Directories** dialog, in the edit field, enter the `$(VSInstallDir)DIA SDK\include` directory. Add this directory to guarantee that the compiler can find the dia2.h file. Choose **OK** to save your changes.
48
48
49
49
1. Choose **OK** to save your changes to the project properties.
50
50
51
-
1. On the **Build** menu, choose **Rebuild Solution**. By default, this builds a Debug version of the sample, located in a Debug subdirectory of the solution directory.
51
+
1. On the **Build** menu, choose **Rebuild Solution**. By default, Visual Studio builds a Debug version of the sample, located in a Debug subdirectory of the solution directory.
52
52
53
53
1. Close Visual Studio.
54
54
55
55
### To build the Dia2Dump sample at the command line
56
56
57
-
1. In a Developer command prompt window, change to the directory where you copied the sample files. If you did not copy the sample to another directory, you must use an elevated (run as administrator) Developer command prompt window.
57
+
1. In a Developer command prompt window, change to the directory where you copied the sample files. If you didn't copy the sample to another directory, you must use an elevated (run as administrator) Developer command prompt window.
58
58
59
-
1. Enter the command `nmake makefile` to build the default Debug configuration of Dia2Dump.exe.
59
+
1. Enter the command `nmake makefile` to build the default Debug configuration of dia2dump.exe.
60
60
61
61
## Run the Dia2Dump sample
62
62
63
-
Dia2Dump.exe relies on the msdia*version*.dll COM server to provide its services. In Visual Studio 2015 and Visual Studio 2017, the version is msdia140.dll. If the msdia*version*.dll COM server is not initialized, you must register it before dia2dump.exe can work. The DIA SDK directory has a bin subdirectory that contains the x86 version of the DLL. A version for x64 architecture machines is in bin\amd64, and a version for ARM is in bin\arm. To register the dll, open an elevated Developer command prompt window, and change to the directory that contains the version for your machine architecture. Enter the command `regsvr32 msdia140.dll` to register the COM server.
63
+
Dia2Dump.exe relies on the msdia*version*.dll COM server to provide its services. In Visual Studio 2015 and Visual Studio 2017, the version is msdia140.dll. If the msdia*version*.dll COM server isn't initialized, you must register it before dia2dump.exe can work. The DIA SDK directory has a bin subdirectory that contains the x86 version of the DLL. A version for x64 architecture machines is in bin\amd64, and a version for ARM is in bin\arm. To register the dll, open an elevated Developer command prompt window, and change to the directory that contains the version for your machine architecture. Enter the command `regsvr32 msdia140.dll` to register the COM server.
64
64
65
65
### To run the sample
66
66
67
-
1. Open a command prompt and change to the directory that contains the Dia2Dump.exe that you built.
67
+
1. Open a command prompt and change to the directory that contains the dia2dump.exe that you built.
68
68
69
69
1. Enter the command `dia2dump filename` where *filename* is the name of a PDB file to examine. If the PDB file is in another directory, use the full path to the file as *filename*. This command lists all the data in the PDB file.
0 commit comments