远程调试的Azure工作者角色 [英] Remote Debugging Azure Worker Role

查看:204
本文介绍了远程调试的Azure工作者角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一万个链接像这样的http://blogs.msdn.com/b/cie/archive/2014/01/24/windows-azure-remote-debugging.aspx,这或多或少会似乎采取远程调试安装的照顾。我在VS 2013做了很多次更新2,部署,然后连接到调试器,它根本不起作用。那么,调试器似乎重视,但是当我将鼠标悬停在一个破发点,通知我说,断点将目前尚未受到打击我不断地得到的消息。无符号已加载这个文件前阵子我记得看到一个频道9 presentation,他们似乎configre的符号存储。我想这个配置并悬停在该断点时,它仍然给我相同的消息。

There are a million links like this one http://blogs.msdn.com/b/cie/archive/2014/01/24/windows-azure-remote-debugging.aspx, which more or less would seem to take care of the remote debugging setup. I have done this many times in VS 2013 Update 2, deployed, then attached to debugger and it simply does not work. Well, the debugger seems to attach, but I continually get the message when I hover over a break point informing me that 'The breakpoint will currently not be hit. No symbols have been loaded for this document' A while back I recall seeing a channel 9 presentation and they seemed to configre the symbol store. I tried configuring this and it still gives me the same message when hovering over the breakpoint.

推荐答案

VS 2013 Update 2的远程调试 - 我只能得到它以调试构建工作。我已经设置了调试选项启用仅我的code和加载的所有符号 - 这似乎很好地工作。我现在可以设置断点并没有收到你(和我)前面提到的消息。

VS 2013 Update 2 Remote Debugging - I can only get it to work with a 'Debug' build. I have set the Debugging Option "Enable Just My Code" and loaded all symbols -- this seems to work fine. I can now set breakpoints and do not receive the message you (and I) noted earlier.

这可能不是因为这将是很好能够将调试器附加到产能释放理想的情况,但它似乎是现在一个半合理的解决办法。

This is probably not the ideal situation as it would be nice to be able to attach the debugger to a production release but it seems to be a semi-reasonable workaround for now.

编辑:
要点:


  1. 您必须启用的Azure门户远程调试你的云服务或网站 - 配置的选项卡(只保持48小时启用)

  2. 在您的的Web.config 的文件必须设置为真的的编译的元素的的调试的属性。这意味着,你要么做一个调试构建或手动编辑的的Web.config 的文件。下面是微软官方文档的链接一个完整的解释和怎么做,而无需重新部署应用程序一个很好的例子:
    <一href=\"http://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-troubleshoot-visual-studio/#remotedebug\">http://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-troubleshoot-visual-studio/#remotedebug

  3. 如果您仍然有问题,你可能必须禁用调试选项的启用仅我的code 的在Visual Studio

  1. You must enable Remote Debugging in the Azure Portal for your Cloud Service or Web Site -- Configure Tab (it only remains enabled for 48 Hours)
  2. The debug attribute of the compilation element in your Web.config file must be set to "true". This means, you either have to do a 'Debug' build or manually edit the Web.config file. Here is a link to official Microsoft documentation with a full explanation and a great example of how to do that without redeploying your application: http://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-troubleshoot-visual-studio/#remotedebug
  3. If you still have problems you may have to disable the Debugging Option Enable Just My Code in Visual Studio

这篇关于远程调试的Azure工作者角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆