xarzu
xarzu

Reputation: 9499

My Visual Studio 2010 cannot debug my app suddenly

My Visual Studio 2010 cannot debug my app suddenly.

I am working on a Silverlight application.

As I write code, I run the debugger as a test.

Everything has been going well but now, suddenly, after I run a build, the options to run in debug mode have vanished? Even the little green arrow is greyed out.

What has happened that will make the debugger become inaccessible? What sorts of things will make this occur?

Upvotes: 3

Views: 3919

Answers (1)

xarzu
xarzu

Reputation: 9499

I solved the problem and I think this is interesting and I post the answer here for the next poor soul that has to experience this.

The problem is that sometimes as you move the mouse around (early in the morning or late at night or if you are distracted, etc.) you can click on something without knowing it if your finger just twitches. Or maybe there is something else that happened, who knows.

The point is this. If you have a Visual Studio Solution that has more than one project, sometimes the other project might be a dll or a project that does not produce an exe. If, somehow, that other project gets to be the default project without you realizing it, then after you do a build, you will not be able to run the debugger. So the solution is to reset the executable project to be the default one.

{maybe a boss or collegue who is interested in your little DLL, decided to have a look at it and thought it would be harmless to remote to your computer and for some reason thought it was necessary to set it as the default project}

Upvotes: 9

Related Questions