Mobile bug tracking with BugSense

by Fabien Lavocat 12. October 2011 17:31

BugSenseToday I’m gonna talk about a new service I discovered yesterday, bugsense. This free tool is used to report crash of your mobile applications (iPhone, Android, Google AppEngine, BlackBerry or Windows Phone 7) and send to the developer a notification, then a web tracking system will help you to know what is needed to fix. You’ll ask me, why this tool is free? The business model (according to the FAQ) is that some future features will be available only with a premium account.

Let’s talk about features.

analytics

From your interface, your dashboard, you can track the number of exceptions raised by your applications every days, weeks, months. You can also track the list of bug you already fixed and the pending list.

image

As you can see, for an exception, you can see the stack trace, and a lot of information concerning the device, like the OS version, the country, the application version, the application name… A bug has two states, Unresolved and resolved. It allows you to track, filter and sort easily what you have to do for the next release of your application.

image

You can also invite other developers of your team to track the bugs in the same dashboard.

How to implement it into your applications.

It is very very easy! Do you know NuGet? Just install the package BugSense for Windows Phone into your project.

nuget

You’ve first to initialize the service by providing the application handled and your API Key (This key is given when you create a new application on the BugSense dashboard). Update the constructor of the class App.

/// <summary>
/// Constructor for the Application object.
/// </summary>
public App()
{
    // Define the instance of BugSense
    BugSenseHandler.Instance.Init(this, API_KEY);

    // Global handler for uncaught exceptions. 
    BugSenseHandler.Instance.UnhandledException += Instance_UnhandledException;
}

Then we have to modify the way to raise unhandled exception raised by your application. You can remove the line UnhandledException += Application_UnhandledException; from the constructor, and we will create our own handler.

// Code to execute on Unhandled Exceptions
private void Instance_UnhandledException(object sender, BugSenseUnhandledExceptionEventArgs e)
{
    // Use BugSense to report the exception
    BugSenseHandler.HandleError(e.ExceptionObject);

    if (System.Diagnostics.Debugger.IsAttached)
    {
        // An unhandled exception has occurred; break into the debugger
        System.Diagnostics.Debugger.Break();
    }
}
popup-wp7

So now, when a unhandled exception is raise in your application, this popup is displayed. When the user click OK, a report is sent to your dashboard, and an email is sent to your mailbox (if you activated the notification). You can, of course, customize the popup and the error message.

So, if you want to try the service BugSense for free, check it out http://www.bugsense.com/

Tags:

Windows Phone 7

Comments

10/12/2011 5:50:15 PM #

Panagiotis Papadopoulos

Merci Fabien!
We are very much interested in Windows Phone 7 and we hope that it will be soon on a par with our Android offering. We plan to release our pricing model later this year and it will be a mixture of premium features and pay as you but there will be a generous free tier. You can understand that app that sends over 100k error per month should pay a bit more Wink

Panagiotis Papadopoulos United States

10/12/2011 6:54:33 PM #

fabien lavocat

It seems very interesting. Of course I understand that an application that sends over 100k a month should pay more, but I think that an application that sends over 100k exception should not be publish on any marketplace... (except if it is a huge application like Facebook or Twitter...)

fabien lavocat United States

10/12/2011 11:46:40 PM #

Panagiotis Papadopoulos

We have seen 4.5M per month! If an app has more than 500.000 if there is only one bug that affects the latest release even if it is minor it will send us hundreds thousands

Panagiotis Papadopoulos United States

10/13/2011 9:09:12 AM #

Fabien Lavocat

Wow 4.5M a month! Yes you're right, if an application is deployed to hundreds thousands a single bug can generate a lot of query on your servers...

Fabien Lavocat United States

1/11/2012 1:32:28 AM #

trackback

[Windows Phone 7.5] Récupérer les rapports de crashs sur Marketplace

Petite astuce qui gagne à être partagée évoquée lors d’une discussion avec David Catuhe ce matin : la

Pierre's Embedded and Mobile Blog

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



About

Fabien Lavocat

Lavocat Fabien
Ingénieur Multimédia - TMM Communication



"Blog-Microsoft.fr is an independent blog and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by Microsoft Corporation."

Contactez-moi Send mail

MVP
Microsoft Most Valuable Professional
Client Application Development