Depuração de vários processos
This topic applies to:
Edition |
Visual Basic |
C# |
F# |
C++ |
Web Developer |
---|---|---|---|---|---|
Express |
|||||
Pro, Premium e Ultimate |
Com o Visual Studio o depurador, você pode depurar programas em execução em vários processos. A process is an instance of a program running in its own memory space with its own object code, data, and resources. When you start a program by launching an EXE, for example, the system scheduler creates a new process for that program. If you launch multiple instances of the program, it creates multiple processes. The operating system creates other processes, system processes, automatically, for its own purposes.
Here are some considerations and instructions for debugging multiple processes.
Script Applications
Some programs, such as script applications, do not have their own processes. These programs are hosted by another application, such as Internet Explorer or Internet Information Services, and run in the host's process. To debug such a program, you must debug the host process. Usually, this involves attaching to the host process. For more information, see Debugging Script and Web Applications.
Techniques for Debugging Multiple Processes
Com o Visual Studio o depurador, você pode depurar vários processos dentro de um Visual Studio solução. In this case, each process is created by a separate project within the solution, so you can think of this as debugging multiple projects. You can do this by setting multiple startup projects, or you can start debugging one project and then start additional projects from Solution Explorer. For more information on multiple projects, see Choosing the Startup Project.
To switch from debugging one process to debugging another one, use the Debug Location toolbar. For more information, see Como: Depurar vários processos.
Visual Studiotambém lhe oferece o poder de depurar processos iniciados fora do Visual Studio. Para fazer isso, você deve iniciar Visual Studio e anexar a um processo em execução. Simultaneamente, você pode depurar processos iniciados dentro e fora da Visual Studio. For more information, see Attaching to a Running Program or Multiple Programs.
Consulte também
Tarefas
Como: Depurar vários processos
Como: Iniciar a execução de um projeto selecionado