Microsoft 9GD00001 Computer Accessories User Manual


 
Chapter 6: Debugging with Visual Studio 151
Do a build of your application, which will produce various files suitable for debugging.
To view these files, right-click the solution, project, or folder in Solution Explorer and
select Open Folder in Windows Explorer. Then navigate to the bin\Debug folder, which
should look similar to Figure 6-3.
There are four files in Figure 6-3, two for the application and two to support running
in the debugger. DebugAndTestDemoCS.exe is the executable console application, which
you might have already expected. A *.pdb file is a symbol file that helps synchronize the
identifiers in your code with the executable file, making it easier to step through code with
the VS debugger.
There are two files with vshost in their name, which are instrumental to the debugging
process. A *.vshost file makes your application load faster during debugging, gives you
the ability to test your application with different security configurations, and allows you to
evaluate expressions while debugging. The vshost files are for debugging only, so you
Figure 6-2 The Build (C#) and Compile (VB) Properties tab