简体   繁体   English

从 Visual Studio 2015/2017 远程调试 Mono 应用程序

[英]Remote debugging Mono application from Visual Studio 2015/2017

I want to remote debug a C# console application running on Linux from Visual Studio 2015/2017/2019.我想从 Visual Studio 2015/2017/2019 远程调试在 Linux 上运行的 C# 控制台应用程序。 It seems I cannot find such tool to do this from Mono web site, can anyone confirm that Mono does not provide such tool to remote debug C# application running on Linux from Visual Studio 2015-2019?似乎我在 Mono 网站上找不到这样的工具,谁能确认 Mono 没有提供这样的工具来远程调试在 Visual Studio 2015-2019 上运行在 Linux 上的 C# 应用程序? If that is the case, any suggestion on any tool that can do this?如果是这种情况,对可以执行此操作的任何工具有什么建议吗? It is better that the tool can support Visual Studio 2015/2017/2019 and proved can work.最好是该工具可以支持 Visual Studio 2015/2017/2019 并证明可以工作。

Use vsMonoDebuger extension for visual studio.将 vsMonoDebuger 扩展用于 Visual Studio。 It can attach to mono process and deploy your program via SSH to linux.它可以附加到单进程并通过 SSH 将您的程序部署到 linux。 If you want debug already deployed app you nedd to start your app with mono with special arguments in command line.如果您想调试已部署的应用程序,您需要在命令行中使用带有特殊参数的单声道启动您的应用程序。 At arguments you can look in extension settings.在参数中,您可以查看扩展设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM