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
{{ message }}
Repository navigation
Question - What is the Difference between Debug Type Full & Pdb #25550
Hi,
I have a question regarding the build output when setting the Debug Type Full or Pdb-Only in project properties on .NET Core. As far as I could see the assemblies produced are the same? I also don't see any difference in the pdb files which are produced... but maybe am missing something.
In full framework there is definitely a difference and it could have perf impact on resulting code, should we have the same concerns on .NET Core? or is it a non-issue.
ok thanks, the confusion for me was that for Full Framework our docs say there is a potential perf impact? I was wondering if this still applied for .NET Core, they also emit an additional attribute but I didn't see this in the produced assemblies so I guess this also doesn't apply .NET Core?
"If you use -debug:full, be aware that there is some impact on the speed and size of JIT optimized code and a small impact on code quality with -debug:full. We recommend -debug:pdbonly or no PDB for generating release code. "
Activity
gfoidl commentedon Mar 21, 2018
Have a look at Portable PDB -- hope this clarifies.
keyoke commentedon Mar 21, 2018
thanks that's interesting read but there is no mention regarding any possible Perf impact
gfoidl commentedon Mar 21, 2018
It's for debugging. So there should be no influence when in Release and w/o debugger.
Do you have any concrete perf-problem, or just a informational question?
keyoke commentedon Mar 21, 2018
ok thanks, the confusion for me was that for Full Framework our docs say there is a potential perf impact? I was wondering if this still applied for .NET Core, they also emit an additional attribute but I didn't see this in the produced assemblies so I guess this also doesn't apply .NET Core?
"If you use -debug:full, be aware that there is some impact on the speed and size of JIT optimized code and a small impact on code quality with -debug:full. We recommend -debug:pdbonly or no PDB for generating release code. "
_"One difference between -debug:pdbonly and -debug:full is that with -debug:full the compiler emits a DebuggableAttribute, which is used to tell the JIT compiler that debug information is available. Therefore, you will get an error if your code contains the DebuggableAttribute set to false if you use -debug:full. " - https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/debug-compiler-option
karelz commentedon Mar 21, 2018
@tmat @noahfalk @mikem8361 do you have any insights?
tmat commentedon Mar 21, 2018
There is no difference between
fullandpdb-onlysince Visual Studio 2013 (Roslyn). We should update the docs. @VSadovstephentoub commentedon May 3, 2018
@mairaw, anything you want to do for the docs regarding the above?
I'm going to close this issue, as there's nothing left to do for corefx.
<DebugType>full</DebugType> for opencover/codecov.io
Set debug type to full (won't affect performance according to https:/…