PDB File / Debugging

  • Thread starter Thread starter Wayne P.
  • Start date Start date
W

Wayne P.

I am about to release a program for beta testing. Could use a few feelers
on how to get good error reporting back in case something happens that my
error handling did not catch.

What is the PDB file that is created in Debug mode for? Should I compile in
this mode and release the PDB to my beta testers (will it do them any good
without the IDE)?

What would be the best way to collect errors and etc.

TIA for help and advice!

Wayne P.
 
The PDB file can be useful to display the detailed stack trace with source
files and line numbers when an exception occurs. Implement an "Unhandled
exception" dialog that will be shown when an unhandled exception is thrown.
This dialog should show the exception stack trace. When your program is
compiled in the debug mode, the stack trace will display files and lines so
you will be able to spot the error location easily.
 
Thanks! Sounds like a great way to go.

I'm not sure how to implement this though, would you be able to point me to
some docs and examples?

Thanks again!

Wayne P.


Dmitriy Lapshin said:
The PDB file can be useful to display the detailed stack trace with source
files and line numbers when an exception occurs. Implement an "Unhandled
exception" dialog that will be shown when an unhandled exception is thrown.
This dialog should show the exception stack trace. When your program is
compiled in the debug mode, the stack trace will display files and lines so
you will be able to spot the error location easily.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Wayne P. said:
I am about to release a program for beta testing. Could use a few feelers
on how to get good error reporting back in case something happens that my
error handling did not catch.

What is the PDB file that is created in Debug mode for? Should I
compile
in
this mode and release the PDB to my beta testers (will it do them any good
without the IDE)?

What would be the best way to collect errors and etc.

TIA for help and advice!

Wayne P.
 
AppDomain class. Has an event raised in case of unhandled exception.

Exception.StackTrace property.

try...catch...finally language elements.

MessageBox class or Form class, ShowDialog method.

All of these can be found on MSDN.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Wayne P. said:
Thanks! Sounds like a great way to go.

I'm not sure how to implement this though, would you be able to point me to
some docs and examples?

Thanks again!

Wayne P.


Dmitriy Lapshin said:
The PDB file can be useful to display the detailed stack trace with source
files and line numbers when an exception occurs. Implement an "Unhandled
exception" dialog that will be shown when an unhandled exception is thrown.
This dialog should show the exception stack trace. When your program is
compiled in the debug mode, the stack trace will display files and lines so
you will be able to spot the error location easily.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Wayne P. said:
I am about to release a program for beta testing. Could use a few feelers
on how to get good error reporting back in case something happens that my
error handling did not catch.

What is the PDB file that is created in Debug mode for? Should I
compile
in
this mode and release the PDB to my beta testers (will it do them any good
without the IDE)?

What would be the best way to collect errors and etc.

TIA for help and advice!

Wayne P.
 
Back
Top