简体   繁体   English

使用Visual Studio 2013远程调试在Linux上运行的C#mono应用程序的最佳方法

[英]Best way to remote debug a C# mono app running on linux with Visual Studio 2013

I am considering developing several console/service type apps for Linux using Mono C#. 我正在考虑使用Mono C#为Linux开发几个控制台/服务类型的应用程序。

My preferred development environment would be Windows with Visual Studio 2013. 我首选的开发环境是使用Visual Studio 2013的Windows。

Are there any solutions for remote debugging a Mono C# console process running on Linux with Visual Studio 2013? 是否有任何解决方案可以远程调试使用Visual Studio 2013在Linux上运行的Mono C#控制台进程?

In an ideal solution a simple F5 would deploy build output to the remote linux host, start the app on the host and then attach a debugger so that I can locally use all the standard debugging capabilities of Visual Studio 2013 (break points, stacktrace, watch window, etc...) 在理想的解决方案中,简单的F5会将构建输出部署到远程linux主机,在主机上启动应用程序,然后附加调试器,以便我可以在本地使用Visual Studio 2013的所有标准调试功能(断点,堆栈跟踪,监视窗口等...)

Is this even possible at present? 这目前是否可能? This add-in here ( http://www.giesswein-apps.at/mono ) seems like a nice solution but it looks fairly new and I can't tell if it's only for RaspberryPi. 这个加载项( http://www.giesswein-apps.at/mono )似乎是一个很好的解决方案,但它看起来相当新,我不知道它是否只适用于RaspberryPi。

I understand Xamarin provides solutions to cross platform mobile development but do they have any solutions that might make C# Linux development easier? 我了解Xamarin为跨平台移动开发提供解决方案,但他们是否有任何可能使C#Linux开发更容易的解决方案?

The MonoDebugger add-in you linked definitely works on the PC as well, so it's not limited to the RaspberryPi. 您链接的MonoDebugger插件也可以在PC上运行,因此它不仅限于RaspberryPi。 I have tried it, but as you said it's still fairly new and I found some bugs eg while stepping through a while-loop . 我已经尝试过,但正如你所说它仍然相当新,我发现了一些错误,例如踩过一个while循环

Debugging a remote Mono process should also be possible with MonoDevelop/Xamarin Studio, but it's apparently not something you can do out of the box: http://tirania.org/blog//archive/2013/Oct.html 使用MonoDevelop / Xamarin Studio也可以调试远程Mono进程,但显然不是你可以开箱即用的东西: http//tirania.org/blog//archive/2013/Oct.html

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

相关问题 在Visual Studio中使用Mono将C#WinForms应用程序移植到Linux / OS X. - Porting C# WinForms app to Linux/OS X using Mono in Visual Studio 使用C#与Selenium WebDriver和NUnit一起调试Visual Studio 2013 - Debug Visual Studio 2013 Using C# with Selenium WebDriver and NUnit 如何使用Microsoft Visual Studio 2013在C#中以混合模式调试? - how to debug in mixed mode in C# with Microsoft Visual Studio 2013? 无法在Visual Studio 2013中调试C#RTD Server项目 - Cannot debug C# RTD Server project in Visual Studio 2013 Visual Studio 2010 C#在远程计算机上运行/调试 - Visual Studio 2010 C# Run/Debug on Remote Machine 无法在 linux 上使用 Visual Studio 代码调试 C# 测试 - Cannot debug C# tests with visual studio code on linux 如何在Linux中的Mono下调试Visual Studio .NET应用程序? - How to debug Visual Studio .NET application under Mono in Linux? 运行在Linux中使用Mono编译的C#程序 - Running C# program compiled with Mono in Linux Windows XP中的Visual Studio 2013远程调试过程 - Visual Studio 2013 remote debug process in Windows XP 转换Visual Studio 2017 C#解决方案/项目以在Linux上与Mono一起使用? - Convert Visual Studio 2017 C# solution / project for use with Mono on Linux?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM