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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With