How to Debug only one project in Visual Studio?

Asked

Viewed 395 times

4

I have six C# web projects inside a Solution in Visual Studio 2010, when running debug, Visual Studio launches the six projects at once, each of them in a different process.

I wonder if there’s like me thresh only one project or I will have to place each project within one Solution?

When I run a project

Serviços

all these services are executed!

  • Tried to make a unload in projects that will not use?

  • Dude, put your comment as an answer so I can tag him!

  • I put as an answer!

4 answers

2

  1. Right click on your solution (through Solution Explorer);
  2. choosing Set Startup Projects;
  3. select the project you want to run in the section Single Startup Project;
  4. Give the Apply to finalize.

Withdrawn of that answer.

  • Face so far okay, but that wasn’t exactly my question. I will edit my question for a better clarification.

  • How are you debugging them all at once? Select the one you want to debug "Set startup" and put the breakpoint wherever you want it to stop, then F9 until you get there

2


You can make a Unload of the project

As follows:

  1. Right-click on the project you want to disable on Solution Explorer
  2. Click on Unload Project
  3. And just like that.

If you want to reverse:

  1. Right click on the project you want to rehabilitate on Solution Explorer
  2. Click on Reload Project
  3. And just like that.

0

  1. Right click on the project.
  2. Select Debug.
  3. Click on Start new Instance.
  • It also did not work and started the six processes!

0

Right click on your solution and go to Configuration Manager.

In the Configuration Manager, change all your apps that you don’t want to run by unchecking Build and let the application you want to debug checked.

After that a clean across the Solution and soon after a rebuild.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.