vs 2017 RC - 使用git中的linux项目和远程gdb [英] vs 2017 RC - using linux project from git with remote gdb

查看:105
本文介绍了vs 2017 RC - 使用git中的linux项目和远程gdb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我看到vs2017支持远程编译和调试linux c ++应用程序。我试图从git下载我的linux源代码并在2017年对其进行处理,但我似乎无法弄清楚如何编译/调试它作为一个Linux项目。自从大学以来我没有用过VS,所以我有点生疏了。有什么建议?

解决方案

嗨gbux,


Welcome到MSDN论坛。


Refer根据您的描述,请查看此博客:Visual C ++ for
Linux Development
我找到了以下消息:


* 用于Linux开发的
Visual C ++扩展
使您能够为Linux服务器,台式机和设备创作C ++代码。您可以从VS内管理
与这些机器的连接.VS将自动复制和远程构建您的源,并可以启动您的使用调试器进行应用程序。我们的项目系统支持针对特定体系结构(包括ARM)。请继续阅读如何从我们的新Linux项目开始获取


具体来说,我们需要openssh-server ,g ++,gdb和gdbserver。使用您最喜欢的软件包管理器安装它们,例如在基于Debian的系统上安装它们:

   sudo apt-get install  openssh-server g ++ gdb gdbserver   

我们需要先安装扩展程序:
用于Linux开发扩展的Visual C ++
按照上述博客中的指南开始你的第一个VS Linux项目和调试。


如果您遇到任何问题,可以重定向到相应的论坛:
https:/ /github.com/microsoft/vslinux/issues 并开始一个新的问题,这将帮助您获得更好和专业的支持您的问题,因为我们的论坛是讨论Visual Studio WPF / SL设计器,
Visual Studio Guidance Automation Toolkit,开发人员文档和帮助系统以及Visual Studio编辑器。


如果您对VS IDE有任何疑问,请随时告诉我,谢谢您的理解。




祝你好运,


萨拉


So i saw that vs2017 has support to remotely compile and debug linux c++ applications. Im trying to pull down my linux source code from git and work on it in vs 2017, but i cant seem to figure out how to compile / debug it as a linux project. I havent used VS since college so im a little rusty. Any suggestions?

解决方案

Hi gbux,

Welcome to the MSDN forum.

Refer to your description, please have a look at this blog: Visual C++ for Linux Development and I found the following message:

*The Visual C++ for Linux Development extensionenables you to author C++ code for Linux servers, desktops and devices. You can manage your connections to these machines from within VS. VS will automatically copy and remote build your sources and can launch your application with the debugger. Our project system supports targeting specific architectures, including ARM. Read on for how to get started with our new Linux projects.

Today we only support building remotely on the Linux target machine. We are not limited by specific Linux distros but we do have dependencies on the presence of some tools. Specifically, we need openssh-server, g++, gdb and gdbserver. Use your favorite package manager to install them, e.g. on Debian based systems:

sudo apt-get install openssh-server g++ gdb gdbserver

We need to firstly install the extension:The Visual C++ for Linux Development extension and follow the guideline from the above blog to start your firstly VS Linux project and debug.

If you meet any issue about it, you can redirect to the corresponding forum: https://github.com/microsoft/vslinux/issues and start a new issue, that will help you to get a better and professional support for your issue, since our forum is to discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

If you have any issue about VS IDE, please feel free to let me know, thanks for your understanding.

Best regards,

Sara


这篇关于vs 2017 RC - 使用git中的linux项目和远程gdb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆