I’ve created a simple winform project, added ClassLibrary with a single method that triggers
IndexOutOfRangeException.
The form call this library and displays unhanded exception.
I build everything in Release mode with pdb files
When I run the Exe I get the error reporting window with error info.
What now? how do I use PDB file with this error report to debug the program?
The easiest way to use the PDB file is to let Visual Studio do the heavy lifting – either launch your program with Visual Studio’s “Debug” command (F5 by default), or run the program and use the “Attach to Process” item in Visual Studio’s Debug menu. If the PDB is located in the same directory as the executable, Visual Studio should detect and use it without any further intervention on your part.