Configurações de projeto para configurações de depuração do C#
Você pode alterar as configurações do projeto para uma configuração de depuração C# na Property Pages janela, conforme discutido em configurações Debug e Release. The following tables show where to find debugger-related settings in the Property Pages window.
Debug tab
Setting |
Description |
---|---|
Configuration |
Sets mode for compiling the application. Choose among Active (Debug), Debug, Release, All Configurations. |
Start Action |
This group of controls specifies the action that will occur when you choose Start from the Debug menu.
|
Argumentos de linha de comando |
Specifies command-line arguments for the program to be debugged. The command name is the program name specified in Start external program. If Start Action is set to Start URL, command-line arguments cannot be specified. |
Diretório de trabalho |
Specifies the working directory of the program being debugged. Em Visual C#, o diretório de trabalho é o diretório de aplicativo é iniciado de \bin\debug por padrão. |
Use remote machine |
The name of a remote machine where the application will run for debugging purposes or an Msvsmon server name. The location of the EXE on the remote machine is specified by the Output Path property in the Configuration Properties folder, Build category. The location must be a shareable directory on the remote machine. |
Ativar a depuração de código não gerenciado |
Enables you to debug calls to native (unmanaged) Win32 code from your managed application. |
Ativar a depuração de SQL Server |
Allows debugging of SQL Server database objects. |
Build tab
Setting |
Description |
---|---|
Símbolos de compilação condicional: |
The DEBUG and TRACE constants are defined here. These constants enable conditional compilation of the Debug class and Trace class. With these constants defined, Debug and Trace class methods generate output to the Output window. Without these constants, Debug and Trace class methods are not compiled and no output is generated.
|
Otimizar código |
Unless you find a bug that appears only in optimized code, you should leave this setting turned off in the Debug version. Optimized code is harder to debug because instructions do not correspond directly to statements in your source windows. |
Caminho de saída: |
Normalmente é definido como bin\Debug para depuração. |