Como: Alterar a ação Iniciar para depuração de aplicativos
Observação |
---|
The Express editions, such as Microsoft Visual C# Express, do not support changing the StartAction property; this is only supported in the full Visual Studio product. |
O StartAction propriedade para um projeto indica o item para iniciar quando o aplicativo é depurado: o projeto, um programa personalizado, uma URL ou nada. By default, this is set to Start project. The StartAction property is set on the Debug page of the Project Designer.
When set to Start project, the property indicates that the executable (for Windows Application and Console Application projects) should be started when the application is debugged.
Observação |
---|
Class Library projects cannot be started directly. You must use a Start external program or a Start browser in URL action to debug them. |
When set to Start external program, the property indicates that a specific program should be started when the application is debugged. For example, you might run a pre-built client that consumes your Class Library project.
When set to Start browser in URL, the property indicates that a particular URL should be accessed when the application is debugged. For example, you might access the URL to a Web site that uses your Class Library project.
To start debugging the executable
Com um projeto selecionado no Solution Explorerdiante do projeto menu, clique em Propriedades.
Click the Debug tab.
Choose the Start project option.
To start debugging in an external application
Com um projeto selecionado no Solution Explorerdiante do projeto menu, clique em Propriedades.
Click the Debug tab.
Choose the Start external program option.
Enter the full path for the external application, or click the ellipsis button to select the application.
To start debugging in a browser
Com um projeto selecionado no Solution Explorerdiante do projeto menu, clique em Propriedades.
Click the Debug tab.
Choose the Start browser in URL option.
Enter the URL to the Web page.
Consulte também
Tarefas
Como: defina opções iniciar para depuração Application