user1379417
user1379417

Reputation:

Debug two Azure roles at the same time

I am trying to connect a WorkerRole to a WebRole in Azure using Internal Endpoints.

But how do you debug this? If I start one of the roles from my solution, I (obviously) can't start debug other project, since you can't debug two projects at once.

If I fire up another instance of Visual Studio, I can start the other role from there, and it loads into the Compute Emulator. However, when I try to get to one of the roles from the other (using RoleEnvironment.Roles["RoleName"]), only the current role is present in that collection.

So how do you go about debugging inter-role communication? Is there an object superseding RoleEnvironment that should be used for inter-role communication?

Upvotes: 0

Views: 86

Answers (1)

viperguynaz
viperguynaz

Reputation: 12174

You can definitely run and debug two projects in a solution at the same time. In Visual Studio, view the Solution properties, and in Common Properties >> Startup Project, select multiple projects and specify the projects you want to start.

Multiple Projects

Upvotes: 2

Related Questions