views:

39

answers:

1

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?

+1  A: 

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.

Ben
So the actual error report is not needed at all?
urker
I'm assuming that you're asking about the "Report a problem" dialog - if you're at that point, your application has been terminated and it's too late to debug. So no, it's not needed to use the pdb file.
Ben