Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any possibility to include *.pdb file into Release build to see error line number?

I made a project, all the settings are default.

When i run it in Debug mode (Build config = Debug) and face with exception - it dumps to my custom logging mechanism whith error line number, but when i run Release build - the same exception is logged without line number, only method throwing and call stack are logged.

Is there any possibility to enable detailed debug info in Release config (*.pdb files or smth.)?

like image 975
skaeff Avatar asked Nov 11 '10 08:11

skaeff


People also ask

Should I include PDB files in release?

In either of those cases, you'll want the PDB files to assist you. Profiling should always be done on "Release" builds with optimizations enabled. And once again, the PDB files come in handy, because they allow the assembly instructions being profiled to be mapped back to the source code that you actually wrote.

What does PDB file contains?

A typical PDB formatted file includes a large "header" section of text that summarizes the protein, citation information, and the details of the structure solution, followed by the sequence and a long list of the atoms and their coordinates.

What are PDB files used for?

pdb file holds debugging and project state information that allows incremental linking of a Debug configuration of your app. The Visual Studio debugger uses . pdb files to determine two key pieces of information while debugging: The source file name and line number to display in the Visual Studio IDE.

What is the use of .PDB file in asp net?

The PDB files allow Stack Traces of your code to be logged when your application throws an Unhandled Exception. If your website has CustomErrors in the web. config set to OFF then your erroring code will be visible to everybody.


1 Answers

On the Build tab (and when in the "Release" configuration), you can click Advanced... to change the Debug Info to "full", but note that this may make some compiler optimizations impossible.

like image 144
Marc Gravell Avatar answered Nov 09 '22 10:11

Marc Gravell