Compartilhar via


Configurações do projeto para uma configuração de depuração no Visual Basic

Você pode alterar as configurações de projeto para um Visual Basic configuração de depuração 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.

  • Start project is the default and launches the startup project for debugging. For more information, see Choosing the Startup Project.

  • Start external program permite que você inicie e anexe a um programa que não seja parte de um Visual Studio project. For more information, see Attaching to a Running Program.

  • Start browser in URL enables you to debug a Web application.

Command Line Arguments

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 are ignored.

Working Directory

Specifies the working directory of the program being debugged. Em Visual Basic, a pasta de trabalho é o diretório de aplicativo é iniciado. O diretório de trabalho padrão é \bin\Debug ou \bin\Release, dependendo da configuração atual.

Use Remote Machine

When the check box is selected, remote debugging is enabled. In the textbox, you can type 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 Build tab. The location must be a shareable directory on the remote machine.

Unmanaged code debugging

Enables you to debug calls to native (unmanaged) Win32 code from your managed application. Isso tem o mesmo efeito que selecionar misto para tipo de depurador em um Visual C++ project.

SQL Server debugging

Allows debugging of SQL Server database objects.

Guia Compile: Pressione o botão Advanced Compile Options

Setting

Description

Enable optimizations

This option should be unchecked. Otimização faz com que o código que é realmente executado seja diferente do código fonte visto no Visual Studioe assim torna difícil depuração. If code is optimized, symbols are not be loaded by default when debugging with Just My Code.

Generate debug info

Defined by default in both debug and release versions, this setting (equivalent to the /debug compiler option) creates debug information at build time. The debugger uses this information to show variable names and other information in a useful form when you are debugging. If you compile your program without this information, debugger functionality will be limited. For more information, see /debug.

Define DEBUG Constant

Defining this symbol enables conditional compiling of output functions from the Debug class. With this symbol defined, Debug class methods generate output to the Output window. Without this symbol, Debug class methods are not compiled and no output is generated. This symbol should be defined in the Debug version and not defined in the Release version. Defining this symbol in a Release version creates unnecessary code that slows your program down.

Define TRACE Constant

Defining this symbol enables conditional compiling of output functions from the Trace class. With this symbol defined, the Trace class methods generate output to the Output window. Without this symbol, Trace class methods are not compiled and no Trace output is generated. This symbol is defined by default for both Debug and Release versions.

Consulte também

Outros recursos

Configurações e preparação para depuração