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

1

6

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?

Frenchify answered 27/5, 2011 at 1:36 Comment(2)
Right now I'm doing this by running two instances of Visual Studio. Any better ways?Frenchify
Did you see my answer below? You can definitely debug both at the same time.Enjoyable
E
7

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.

Enjoyable answered 27/5, 2011 at 2:2 Comment(2)
What if I want to run a WinForms program and a WCF WebRole at the same time? How would I go about this?Frenchify
@Frenchify I realize I am replying to a very old comment, but for the sake of others that might stumble here, you can set multiple projects to startup in Visual Studio. Right click on the solution and select "Set startup Projects", then select the projects in the 'multiple startup projects' section. In your scenario you can set the Azure cloud project and the WinForms project to be startup projects.Bremser

© 2022 - 2024 — McMap. All rights reserved.