soygul / NBug

Automated bug reporting library for .NET
http://soygul.com/nbug
MIT License
191 stars 78 forks source link

NBug

Build Status

NBug is a .NET library created to automate the bug reporting process. It automatically creates and sends:

Error reports can be sent to:

It has been successfully used in many projects including Git Extensions, as well as my own projects.

Quickstart

Read the quickstart here: http://soygul.com/nbug/

In a typical scenario all you need is to add the NuGet package (or compile and use the NBug.dll directly, which is always more up-to-date) and add following to your application's Program.cs file (assuming it is a console app):

// Uncomment the following after testing to see that NBug is working as configured
// NBug.Settings.ReleaseMode = true;

// NBug config
NBug.Settings.Destination1 = "Type=Mail;From=me@mycompany.com;To=bugtracker@mycompany.com;SmtpServer=smtp.mycompany.com;";

// Attach exception handlers after all configuration is done
AppDomain.CurrentDomain.UnhandledException += NBug.Handler.UnhandledException;

After this, any unhandled exception will be formatted and sent to the configured e-mail address, after the app is restarted by the user.

Questions

You can post your question on StackOverflow with NBug tag: http://stackoverflow.com/questions/tagged/nbug

Get it on NuGet

Install-Package NBug

Note: NuGet versions tends to be outdated so it is better to compile the project yourself to get the latest changes.

CodePlex Home

Old (up to v1.1.1 release) project source is hosted at CodePlex, where you can find more information about the project: http://nbug.codeplex.com/