Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3615246
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:20:58+00:00 2026-05-18T22:20:58+00:00

When there is an exception thrown in my program, and it is unhandled, I

  • 0

When there is an exception thrown in my program, and it is unhandled, I expect the debugger to break in my program and show me what the problem is. This doesn’t happen. Instead, my program simply exits, and debugging stops.

If I look at the debugging output, I can see my exception:

A first chance exception of type
‘System.NullReferenceException’
occurred in System.dll

I am using Visual Studio 2010, Visual Basic, writing a simple WinForms app. The code doesn’t matter in this case… it happens with any exception that I’ve seen so far.

I’ve read a lot online about doing to the Debug menu and clicking Exceptions and enabling “break on unhandled user exception”, but I don’t see this option. I think this advice is for VS2008, and is no longer applicable.

I should also note that I’m not running any unit tests. I have never set them up. However, I have read that perhaps the unit tester is swallowing my exceptions?

Please advise me on how to change the behavior of Visual Studio, so I can track down these unhandled exceptions.

Thank you for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:20:59+00:00Added an answer on May 18, 2026 at 10:20 pm

    The item may not be in the menu, which you can fix by customising the menu and adding the item to the debug menu.

    You should also be able to get to the exceptions menu using CTRL + ALT + E

    You need to tick the box in the “Thrown” column for Common Language Runtime exceptions (CLR)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why only one overload throws this exception? Little update: I understand that there was
Is there some way to catch exceptions which are otherwise unhandled (including those thrown
There is probably a simple solution to this problem I've been having all night.
There are some articles concluding never throw an exception from a destructor, and std::uncaught_exception()
Is there any way to find out what exceptions might be thrown by any
Is there an elegant way to handle exceptions that are thrown in finally block?
Are there any memory leaks when I throw an exception from a constructor like
Is there anyway to determine the Exceptions that can be thrown by methods in
Can I avoid the open DataReader exception (There is already an open DataReader associated
If there's an exception in a Rails application, one gets an error page with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.