dotPeek 2017.2 Help

Code Presentation Options

Depending on the settings, on the availability of PDB information, and on the applied navigation command, dotPeek can present compiled code in different ways:

  • Decompiled code - this view displays decompiled C# code corresponding to the type that you open or navigate to. This view is used by default if no debug information is available for the type or if you deliberately navigated to this view using the Navigate To Decompiled Sources command. You can show or hide compiler-generated code for this view.
  • Code from symbol files — this view displays original source code from symbol files in C# or VB.NET. dotPeek retrieves symbol files either from local sources or from symbol servers using debug information.

To configure how the decompiled code is presented, use the following check-boxes on the Decompiler page of dotPeek options:

  • Use sources from symbol files when available Select this check box to use debug information (PDB files) to find appropriate source files and use them to display and navigate the code.
    If this check box is selected and the source files are available via the debug information, dotPeek displays and navigates to the original source code (for portable PDBs, embedded sources can be used).
    If this check box is cleared or if source files are not available, dotPeek decompiles the code.
  • Allow downloading from remote locations Select this check box to enable downloading sources from Symbol Server or other remote locations. If symbol files are available both locally and remotely, dotPeek will display local symbol files.

To view the summary and the presentation mode of an opened document, right-click on its tab header and choose External Source Information in the context menu. In the dialog that appears, you can learn name and location of the assembly where the document belongs as well as the external source provider - metadata viewer, decompiler or symbol server.

Last modified: 14 December 2017

See Also