当我创建新的 Azure 解决方案(具有 Web 角色和辅助角色)时,将一行代码添加到 Default.aspx.cs 文件中,在其中放置一个断点,并在遇到断点时在 Development Fabric 中启动调试我查看 Intellitrace 选项卡,遇到以下错误消息:
Intellitrace 未收集此调试会话的数据。该项目类型可能不受支持,或者您正在调试的进程可能已附加到或在禁用 IntelliTrace 的情况下启动。在 Visual Studio 中重新启动调试会话可能会解决此问题。请注意,附加到已运行的进程时不支持 IntelliTrace。如果您为 InteliTrace [原文如此] 记录选择了自定义位置,请确保正在调试的进程可写入该位置。
我之前创建的其他 Azure 解决方案也会出现此问题。当我创建标准 ASP .Net Web 应用程序时,我能够毫无困难地使用 IntelliTrace。我已经尝试过这种方法,既没有为 IntelliTrace 记录选择自定义位置,也没有使用与标准 ASP .Net Web 应用程序相同的位置。我也尝试重新启动计算机。我还重新安装了 Windows Azure SDK。由于担心启用 SQL Server 调试时 IntelliTrace 可能无法工作,我确保在辅助角色上禁用 SQL Server 调试(在项目设置的“调试”标记中具有此选项的唯一项目)。
关于此问题的最接近的资源是 MSDN 论坛。答案尚不清楚。它指出,“对于本地,您可以启用 IntelliTrace,但您必须手动添加该加载项。”什么是加载项?手动添加加载项意味着什么?那里的答案还指这篇博文,但这仅讨论了如何为已部署到 Windows Azure 云的应用程序启用 IntelliTrace,并没有解决在开发结构。
When I create a new Azure solution (with a web role and a worker role), add a line of code to the Default.aspx.cs file, put a breakpoint there, and launch debugging in the Development Fabric, when the breakpoint is hit and I look at the Intellitrace tab, I am confronted with the following error message:
Intellitrace is not collecting data for this debugging session. The project type may not be supported or the process you are debugging may have been either attached to or launched with IntelliTrace disabled. Restarting the debugging session within Visual Studio may solve this. Please note that IntelliTrace is not supported when attaching to a process that is already running. If you have selected a custom location for InteliTrace [sic] recordings, please make sure it is writable by the process being debugged.
The problem also occurs with other Azure solutions that I previously created. When I create a standard ASP .Net web application, I am able to use IntelliTrace without difficulty. I have tried this both without selecting a custom location for IntelliTrace recordings and using the same location that I used for a standard ASP .Net web application. I tried restarting the computer too. I also reinstalled the Windows Azure SDK. Because of concern that IntelliTrace might not work when SQL Server Debugging is enabled, I made sure that SQL Server Debugging was disabled on the worker role (the only project that had an option for this in the Debug tag of the project settings).
The closest resource on this question is on the MSDN forums. The answer is unclear. It states, "For locally, you can enable IntelliTrace, but you would have to add the add-in by hand." What add in, and what does it mean to add the add-in by hand? The answer there also refers to this blog post, but that discusses only how to enable IntelliTrace for applications that have already been deployed to the Windows Azure cloud and does not address using IntelliTrace in the Development Fabric.
发布评论
评论(1)
Intellitrace 不适用于本地开发结构。您必须部署应用程序才能使 Intellitrace 正常工作。有关调试 Azure 应用程序的更多信息,请参见此处。
Intellitrace doesn't work against the local dev fabric. You have to deploy your application to get Intellitrace to work. More about debugging Azure apps here.