Visual Studio +远程gdb调试 [英] Visual studio + remote gdb debugging

查看:565
本文介绍了Visual Studio +远程gdb调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的情况下:我有一个C ++应用程序(为调试而编译) )在Linux服务器上运行


  1. 我可以在我的Windows机器上使用Visual studio作为前端执行
    实时调试C ++应用程序。这是甚至可能的一个
    大规模应用程序(OR)

  2. 如果上述不可能,我可以在我的窗口或不同的linux框上使用eclipse做同样的远程实时调试

  3. 任何其他更好的IDE选项?

谢谢。

解决方案

您可以轻松地使用 VisualGDB


  1. 在Linux机器上构建您的应用程序,并确保您可以运行它。

  2. 在Windows上安装VisualGDB机器与Visual Studio。

  3. 在Linux机器上运行VisualGDB构建服务器。

  4. 在Visual Studio中,创建新项目,选择C ++ - > VisualGDB

  5. 在向导中选择Linux应用程序 - >导入现有 - >从远程机器导入

  6. 选择构建Linux应用程序的目录。如果不是基于GNU Make,也可以指定构建命令行。

  7. 指定是否要将IntelliSense目录与Visual Studio进行同步。

  8. On最后一个向导页面指定项目的可执行文件名称,以便VisualGDB知道要调试的内容。

当您按完成时,向导将围绕您的Linux项目创建一个Visual Studio包装器项目,以便您可以编辑文件,构建项目并从Visual Studio进行调试。



有一个更详细的教程这里: http://visualgdb.com/tutorials/linux/import/


What is best way to do remote live gdb debugging and use Visual studio as the front end.

In my case: I have a C++ application (compiled for debugging) running on a Linux server

  1. Can I use Visual studio on my windows machine as a front end to do live debugging on the C++ application. Is this even possible for a large scale application (OR)
  2. If above is not possible, can I use eclipse on my windows or on a different linux box to do the same remote live debugging
  3. Any other better IDE options ?

Thanks.

解决方案

You can easily do it with VisualGDB:

  1. Build your app on the Linux machine and ensure that you can run it.
  2. Install VisualGDB on your Windows machine with Visual Studio.
  3. Run the VisualGDB build server on the Linux machine.
  4. In Visual Studio, create new project, select C++->VisualGDB
  5. In the wizard select Linux Application -> Import Existing -> Import from Remote machine
  6. Select the directory where you have built the Linux app. If it's not based on GNU Make, also specify the build command line.
  7. Specify whether you want to synchronize IntelliSense directories with Visual Studio.
  8. On the last wizard page specify the executable name of your project so that VisualGDB knows what to debug.

When you press "finish", the Wizard will create a Visual Studio wrapper project around your Linux project so that you can edit the files, built the project and debug it from Visual Studio.

There's a more detailed tutorial here: http://visualgdb.com/tutorials/linux/import/

这篇关于Visual Studio +远程gdb调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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