简体   繁体   English

如何连接到本地计算机上的Azure Compute模拟器

[英]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.

相关问题 如何配置在Compute Emulator中运行的Azure应用程序? - How do I profile an Azure app running in the Compute Emulator? 如何将本地 USB 端口与 Ubuntu 中的 Azure 虚拟机连接? - How to connect my local USB port with Azure virtual machine in Ubuntu? 我如何知道 Azure 中的虚拟机使用本地网络网关路由连接到本地网络? - How do I know that a Virtual Machine in Azure use the Local network gateway route to connect to an on-premise network? 如何连接到用于MongoDB的Azure CosmosDB仿真器? - How do I connect to the Azure CosmosDB Emulator for MongoDB? 关闭本地计算机后,如何通过 SSH 连接到 Azure VM 并在其上永远运行程序? - How do I SSH to an Azure VM and run a program on it forever after shutting off my local machine? 如何在本地Azure模拟器上重新启动实例? - How do I restart instances on the local Azure Emulator? 如何在不将其添加到防火墙的情况下从本地计算机连接到 azure sql? 注意 - 公共访问已关闭 - How can i connect to azure sql from my local machine without adding it to firewall? Note - Public acess is turned off 如何在本地计算机上使用azure运行terraform init - How can I run terraform init with azure on my local machine 如何在部署角色之前强制启动Azure Compute Emulator? - How do I force start Azure Compute Emulator before the role is deployed? 如何让Azure Compute Emulator以32位模式运行? - How do I get Azure Compute Emulator to run in 32 bit mode?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM