Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 906
Dor Avatar asked May 27 '11 01:05

Dor


People also ask

Which emulator supports multiple instances of debug cloud services?

The Azure Compute Emulator enables us to test and debug the Azure Cloud Services in our local environment without deploying the Cloud Service to Azure.

How do I debug Azure cloud service?

To debug your cloud service on your local computer On the menu bar, select Debug > Start Debugging to run your Azure cloud service project. As an alternative, you can press F5.

What is Microsoft Azure compute emulator?

The Microsoft Azure Storage Emulator is a tool that emulates the Azure Blob, Queue, and Table services for local development purposes. You can test your application against the storage services locally without creating an Azure subscription or incurring any costs.


1 Answers

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.

like image 97
David Makogon Avatar answered Oct 22 '22 18:10

David Makogon