Compartilhar via


Como: Break on User-Unhandled Exceptions

This topic applies to:

Edition

Visual Basic

C#

F#

C++

Web Developer

Express

O tópico é aplicável O tópico é aplicável O tópico é aplicável O tópico é aplicável O tópico é aplicável

Pro, Premium e Ultimate

O tópico é aplicável O tópico é aplicável O tópico é aplicável O tópico é aplicável O tópico é aplicável

Se você estiver depurando com Como: Basta entrar meu código., você pode informar o depurador para quebrar em qualquer exceção que não é tratada por um manipulador no código do usuário ("meu código"). The following procedure shows you how to use the Exceptions dialog box to determine which user-unhandled exceptions you want to break on.

While Using the Exceptions Dialog Box

By default, the Exceptions dialog box lists the most common exceptions in each category. You can add your own exceptions and delete exceptions you have added. Visual Studio saves the list of added exceptions with the solution data, so the exceptions will be available the next time you open and run the project.

ObservaçãoObservação

The Exceptions dialog box provides keys for setting controls without using the mouse. The hot keys are indicated by underlining in the control labels. If you have Windows themes disabled, the underlining will not be visible, although hot keys will still work. To view the hot-key underlining, enable Windows themes using the Windows Control Panel.

Para obter mais informações, consulte como: Adicionar nova exceções e como: Excluir um usuário adicionado exceções.

To break when an exception is not handled by My Code

  1. On the Debug menu, click Exceptions.

    ObservaçãoObservação

    Para habilitar o exceções menu nas versões Express, no Ferramentas menu, clique em configuraçõese selecione Configurações de especialista.

  2. In the Exceptions dialog box, select User-unhandled for an entire category of exceptions, for example, Common Language Runtime Exceptions.

    - ou -

    Expand the node for a category of exceptions, for example, Common Language Runtime Exceptions, and select User-unhandled for a specific exception within that category.

  3. Click OK.

Consulte também

Tarefas

Como: Interromper quando uma exceção é lançada.

Conceitos

Tratamento de Exceção (Depuração)

Histórico de alterações

Date

History

Motivo

Dezembro de 2010

Esclareça as instruções para ativar as configurações de especialista nas Express editions doVisual Studio

Comentários do cliente.