如何在MSBuild构建的Azure Cloud Service程序包中启用远程调试 [英] How to enable remote debugging in Azure Cloud Service package built by MSBuild
本文介绍了如何在MSBuild构建的Azure Cloud Service程序包中启用远程调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在直接通过MSBuild(在TeamCity内)构建ccproj
项目:
I'm building ccproj
project directly by MSBuild (within TeamCity):
msbuild Project.Azure.ccproj /p:Configuration=Debug /t:Publish
如何启用远程调试器?就像在用户界面中一样:
How to enable remote debugger? Like in the UI:
推荐答案
这在基本上,您应该获得 Visual Studio 2013的远程工具,然后将以下属性添加到msbuild命令:
Basically you should get the remote tools for visual studio 2013 and then add the following properties to the msbuild command:
msbuild /TARGET:PUBLISH /PROPERTY:Configuration=Debug;EnableRemoteDebugger=true;VSX64RemoteDebuggerPath="<path-to-remote-tools>";RemoteDebuggerConnectorCertificateThumbprint="<thumbprint-of-ceritificate-that-is-added-to-the-cloud-service>";RemoteDebuggerConnectorVersion="2.4" "<path-to-solution-file>"
其中VSX64RemoteDebuggerPath
是指向Visual Studio远程工具中包含"msvsmon.exe"的文件夹的路径
where VSX64RemoteDebuggerPath
is a path to the folder that contains `msvsmon.exe in the remote tools for visual studio
这篇关于如何在MSBuild构建的Azure Cloud Service程序包中启用远程调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文