How to add Exceptions to the Visual Studio main Debug Menu.

By Peter Bromberg

Recently I was working with another developer and I wanted to show him how to set his Exceptions to break on Command Language Runtime exceptions when they were thrown. This allows you to break into the debugger at the exact point where an exception is thrown rather than someplace up the call stack, and enables you to do real "pinpoint" exception debugging. However, to my surprise, this person did not have the "Exceptions" option in Visual Studio's top "Debug" menu item.

So here is how to add the Exceptions command to the Debug menu if it is not there:

On the Tools menu, click Customize.

The Customize dialog box appears.

Click the Commands tab and, in the Menu bar list, click Debug.

Click Add Command.

In Categories in the Add Command dialog box, click Debug.

In Commands, click Exceptions and then click OK.

(Optional) You can click Move Down to adjust the position of the Exceptions command.

How to add Exceptions to the Visual Studio main Debug Menu.  (1739 Views)