[英]How do I connect to a Azure Compute Emulator on my local machine
I have a WorkerRole running as a Cloud Service. 我有一个作为云服务运行的WorkerRole。 I want to debug it because when I call the service on Azure the calling application hangs. 我想调试它,因为当我在Azure上调用服务时,正在挂起的调用应用程序。
I tried attaching the debugger to the remote service but it times out after 90 minutes of doing nothing. 我尝试将调试器附加到远程服务,但在90分钟不执行任何操作后超时。 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. 为了能够调试您的Azure云服务(在云中运行),首先需要确保它是使用Debug配置构建的,并且已启用远程调试器功能,然后您才能将其附加到该角色Visual Studio就像您在本地运行它一样。
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). 要使用Azure仿真器在本地进行调试,您所需要做的就是运行您的云服务项目(F5(如果它是默认项目)或右键单击->调试->启动新实例)。
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 您可以按照以下步骤启用调试器并附加到服务(在本地和在云中): https : //msdn.microsoft.com/zh-cn/library/azure/ff683670.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.