Dor
Dor

Reputation: 902

How can I debug multiple Azure roles in the Compute Emulator simultaneously?

I have a WCF service and a WorkerRole that I need to run at the same time. However, I can only set one of them as the StartUp project.

What could be done?

Upvotes: 6

Views: 1175

Answers (1)

David Makogon
David Makogon

Reputation: 71024

You shouldn't be setting either of your roles as startup project. Rather, you should be setting the cloud project itself as the startup project. Then, you can set breakpoints in both of your roles.

To test, I just created a brand new cloud project with a WCF Web Role and a Worker Role. I set a breakpoint in the OnStart() of each, and hit both breakpoints.

Upvotes: 7

Related Questions