CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2006
    Location
    Pearl of the orient
    Posts
    304

    Arrow Bug reporting: how do you handle it

    If an error occurs in your software how do you guys handle it?

    These are my specific queries:
    -Do you prompt the user of some options like retry and ignore?
    -Do you show the error message or show your custom message and log the error message?
    -Do you automatically send an email to prompt you of the error? If there is no internet connection then how will you be notified of the error?

    The software will be in a remote place which I cannot personally go so I wish to know what will be the standard practice of such scenario.

    TIA

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Bug reporting: how do you handle it

    Have a log file that uploads whenever it's online, or over-writes every 30 days. You need to have some way to figure out what the client did or didn't do to cause the crash.

    Windows 7 can record the crash and auto-submit a snap-shot view for support options
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    106

    Re: Bug reporting: how do you handle it

    Define in every function a string with the name of the function
    Define in every module a string with the name of the module
    If the error occurs write the errordescription with the name of module and function to a log file

    In this way you can track the location of the code that might have caused the error the fastest way

  4. #4
    Join Date
    Apr 2009
    Posts
    1

    Re: Bug reporting: how do you handle it

    welcome to dvdcollects.com

  5. #5
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: Bug reporting: how do you handle it

    -Do you prompt the user of some options like retry and ignore?
    If it is possible, thus mean you can be sure what the state of the application is.

    -Do you show the error message or show your custom message and log the error message?
    I prefere the mix: show custom message, but give option to display the underlying raw error message. Always log.

    -Do you automatically send an email to prompt you of the error? If there is no internet connection then how will you be notified of the error?
    I would prefere using a general loging framework (Log4NET, MS LAB) which can be configured. You can send the email, log the message to a message queue, write it a log file, or do a combination. I would always log to a file which a user can sent you upon your instruction, but I'd be carefull about sending everything from the application without a user's permissions. So better than automatically sending emails (how would you configure on site SMTP?) is logging, and sending email only as an extra option, which must be invoked by the user.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured