Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging information 'embedded' and 'portable', what are they for?

I found those new options under "Debugging Information" in the "Advanced Build Settings" for .Net assemblies.

I'm not sure what are those options for, google tells me that 'portable' is related to mono (maybe linux/os:2 code editors use another type of pdb?).

Anyone knows exactly what are those options used for?

like image 579
blit Avatar asked May 12 '17 17:05

blit


People also ask

What is portable PDB?

The Portable PDB (Program Database) format describes an encoding of debugging information produced by compilers of Common Language Infrastructure (CLI) languages and consumed by debuggers and other tools. The format is based on the ECMA-335 Partition II metadata standard.

What is debug and release mode in Visual Studio?

Visual Studio projects have separate release and debug configurations for your program. You build the debug version for debugging and the release version for the final release distribution. In debug configuration, your program compiles with full symbolic debug information and no optimization.


1 Answers

.NET Core introduces a new symbol file (PDB) format - portable PDBs. Unlike traditional PDBs which are Windows-only, portable PDBs can be created and read on all platforms.

  • The 'portable' option creates a portable symbol file with pdb extension next to the assembly.
  • The 'embedded' option embeds the portable symbol information into the assembly. No extra pdb file will be created.
like image 187
Tom Avatar answered Sep 29 '22 20:09

Tom