Udostępnij za pośrednictwem


Debug Page, Project Designer

Use the Debug page of the Project Designer to set properties for debugging behavior, such as start action, start options, and remote debugging.

To access the Debug page, select a project node in Solution Explorer, then on the Project menu, click Properties. When the Project Designer appears, click the Debug tab.

Configuration and Platform

The following options allow you to select the configuration and platform to display or modify.

  • Configuration
    Specifies which configuration settings to display or modify. The settings can be Active (Debug) (this is the default), Debug, Release, or All Configurations.

  • Platform
    Specifies which platform settings to display or modify. The default setting is Active (Any CPU). You can change the active platform using the Configuration Manager. For more information, see How to: Create and Edit Configurations.

Start Action

Start Action indicates the item to start when the application is debugged: the project, a custom program, a URL, or nothing. By default, this is set to Start project. The Start Action setting on the Debug page determines the value for the StartAction property.

  • Start project
    Select this radio button to specify that the executable (for Windows Application and Console Application projects) should be started when the application is debugged. This option is selected by default.

  • Start external program
    Select this radio button to specify that a specific program should be started when the application is debugged.

  • Start browser with URL
    Select this radio button to specify that a particular URL should be accessed when the application is debugged.

Start Options

  • Command line arguments
    In this text box, enter the command-line arguments to use for debugging.

  • Working directory
    In this text box, enter the directory from which the project will be launched. Or, click the Browse button (...) to select a directory.

  • Use remote machine
    To debug the application using a remote computer, select this check box and enter the path to the remote computer in the text box.

Enable Debuggers

  • Enable unmanaged code debugging
    This option specifies whether debugging of native code is supported. Select this check box if you are making calls to COM objects, or if you start a custom program written in native code that calls your project and you need to debug the native code. Clear this check box to disable debugging of unmanaged code. This option is cleared by default.

  • Enable SQL Server debugging
    Select this check box to enable debugging of SQL procedures from your Visual Basic application. Clear this check box to disable SQL Server debugging. This option is cleared by default.

  • Enable the Visual Studio hosting process
    Select this check box to enable the Visual Studio hosting process. This option is selected by default.

    In order for debugging in a security zone to work, this option, as well as Debug this application with the selected permission set, available from the Advanced Security Settings Dialog Box, must be enabled.

See Also

Tasks

How to: Change the Start Action for Application Debugging

How to: Set Start Options for Application Debugging

How to: Enable Remote Debugging

How to: Enable Debugging of Unmanaged Code

How to: Enable SQL Server Debugging

How to: Debug a ClickOnce Application with Restricted Permissions

Other Resources

Managing Debugging Properties