Answered VS 2005 Does not break on exception. VS just ends.

  • Thursday, August 02, 2012 6:53 PM
     
     

    In VS 2005, when the application errors (for example divide by 0), the .NET application ends.  I have no idea what line is not working correctly.  What turns this on and off?  I created a new solution and divided by 0, VS will stop at the bad line of code, point at it, and display the error message.  Does anyone know why some times VS just stops and doesn't point at the unhandled acception?

All Replies

  • Thursday, August 02, 2012 7:17 PM
     
     

    In the VS Exceptions Window, I have all the User-unhandled options checked.  When I check Throw for "Common Language Runtime Exceptions", the VS Debugger stops on all exception including the handled exceptions.  I only want VS to stop on exceptions that are unhandled.

  • Monday, August 06, 2012 6:40 AM
    Moderator
     
     Answered

    Hi Ressler,

    Thank you for posting in the MSDN forum. This forum is to discuss the VS debugger tool.

    Since the VS has been updated to VS2012 RC now, if you have the new version, for example, VS2008 or VS2010, you could try to check it, whether it has the same issue?

    If it has the same issue when you debug an app in the new VS version, could you share us a sample? We try to debug it and check it.

    Please attach your Visual Studio project, you can upload it to the sky driver, and then share the download link in your post. Please also attach a screenshot image about the result in your post.

    Reference:

    How to: Break When an Exception is Thrown

    VS2008 Debugger does not break on unhandled exception.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

  • Thursday, August 09, 2012 11:01 AM
    Moderator
     
     

    Hi Ressler,

    I am writing to check the status of the issue on your side. 

    What about this problem now?

    Would you mind letting us know the result of the suggestion?

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

  • Monday, August 13, 2012 6:07 AM
    Moderator
     
     

    Hi Ressler,

    I marked this reply as the answer, if still no help, you could unmark it. If you still need the help, please feel free to let us know, we will try our best to help you.

    Sincerely,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us