Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio does not break on unhandled exceptions when debugging

Suddenly my visual studio does not break on unhandled exceptions and sometimes does not even stop on break points.

I have read many other related SO posts like these:

  • How to make visual studio break only on unhandled exceptions?
  • Why doesn't Visual Studio break on exceptions when debugging unit tests?

but none of the answers solved my problem.

When visual studio breaks on some of the exceptions it displays the following window: enter image description here

but I want the original 'way': enter image description here

These are my Debug\Exceptions settings: enter image description here

Can anyone please help me? This thing drive me crazy.

like image 279
chaliasos Avatar asked Jan 04 '13 11:01

chaliasos


People also ask

How do I enable Break on exception in Visual Studio?

Tell the debugger to break when an exception is thrownIn the Exception Settings window (Debug > Windows > Exception Settings), expand the node for a category of exceptions, such as Common Language Runtime Exceptions. Then select the check box for a specific exception within that category, such as System.

How do I force stop debugging in Visual Studio?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.

How do I skip the code while debugging in Visual Studio?

You can also click on the line you want to skip to and hit Ctrl+F10 (Run to Cursor). It will jump directly to that line.


1 Answers

It is called the Exception Assistant. The screenshot of the Exception dialog makes it clear you've been making changes in the dialog that also controls whether or not the Exception Assistant is enabled, you disabled Just My Code debugging.

Turn it back on. Tools > Options > Debugging > General. Tick the "Enable the exception assistant" option.

like image 91
Hans Passant Avatar answered Oct 16 '22 13:10

Hans Passant