简体   繁体   中英

How do I connect to a Azure Compute Emulator on my local machine

I have a WorkerRole running as a Cloud Service. I want to debug it because when I call the service on Azure the calling application hangs.

I tried attaching the debugger to the remote service but it times out after 90 minutes of doing nothing. So, my next step is to run the service locally with the emulator, which I am now doing.

I have the emulator running but I have no idea how to connect to this local service and what the endpoint is. Can someone help?

To be able to debug your Azure cloud service (running in the cloud), you first need to make sure it is built with the Debug configuration and that the remote debugger feature is enabled, then you'll be able to attach to the role from Visual Studio as if you were running it locally.

To do the debugging locally, with the Azure Emulator, all you need to do is to run your cloud service project (F5 (if it is the default project) or right click -> Debug -> Start new instance).

You can follow these steps to enable the debugger and attach to the service (both locally and in the cloud): https://msdn.microsoft.com/en-us/library/azure/ff683670.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM