[英]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.