C# 调试以csrun.exe启动的Azure web角色
我有一个VisualStudio解决方案,它有一个云项目和一个web角色(包含ASP.NET MVC web API)。如果我点击F5,Azure emulator将启动,我可以很好地调试web角色 我还有一个包含集成测试的测试项目,用于端到端测试WebAPI。在AssemblyInitialize操作中,我使用csrun.exe部署并启动Azure emulator,如下所示:C# 调试以csrun.exe启动的Azure web角色,c#,visual-studio,azure,integration-testing,azure-web-roles,C#,Visual Studio,Azure,Integration Testing,Azure Web Roles,我有一个VisualStudio解决方案,它有一个云项目和一个web角色(包含ASP.NET MVC web API)。如果我点击F5,Azure emulator将启动,我可以很好地调试web角色 我还有一个包含集成测试的测试项目,用于端到端测试WebAPI。在AssemblyInitialize操作中,我使用csrun.exe部署并启动Azure emulator,如下所示: "C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\cs
"C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\csrun.exe"
..\..\..\..\Sources\Cfg.Mgp.Infrastructure.Cloud\csx\Debug
..\..\..\..\Sources\Cfg.Mgp.Infrastructure.Cloud\bin\Debug\ServiceConfiguration.cscfg
/useiisexpress
因此,如果我启动测试,Azure emulator就准备好了,测试也可以正常执行。
这一切都有效
但是,如果我想从集成测试开始调试它,则不会命中Web API中的断点(但执行得很好)。我尝试将调试器连接到IISExpress、WaHostBootstrapper和其他进程,但没有任何效果
如果Azure emulator是用csrun.exe启动的,有人知道如何调试web角色吗
(备注:如果我点击F5,则会启动浏览器;如果我随后运行集成测试,则会很好地点击web角色中的断点。)