Visual Studio +远程gdb调试 [英] Visual studio + remote gdb debugging
问题描述
在我的情况下:我有一个C ++应用程序(为调试而编译) )在Linux服务器上运行
- 我可以在我的Windows机器上使用Visual studio作为前端执行
实时调试C ++应用程序。这是甚至可能的一个
大规模应用程序(OR) - 如果上述不可能,我可以在我的窗口或不同的linux框上使用eclipse做同样的远程实时调试
- 任何其他更好的IDE选项?
谢谢。
您可以轻松地使用 VisualGDB :
- 在Linux机器上构建您的应用程序,并确保您可以运行它。
- 在Windows上安装VisualGDB机器与Visual Studio。
- 在Linux机器上运行VisualGDB构建服务器。
- 在Visual Studio中,创建新项目,选择C ++ - > VisualGDB
- 在向导中选择Linux应用程序 - >导入现有 - >从远程机器导入
- 选择构建Linux应用程序的目录。如果不是基于GNU Make,也可以指定构建命令行。
- 指定是否要将IntelliSense目录与Visual Studio进行同步。
- 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
- 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)
- 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
- Any other better IDE options ?
Thanks.
You can easily do it with VisualGDB:
- Build your app on the Linux machine and ensure that you can run it.
- Install VisualGDB on your Windows machine with Visual Studio.
- Run the VisualGDB build server on the Linux machine.
- In Visual Studio, create new project, select C++->VisualGDB
- In the wizard select Linux Application -> Import Existing -> Import from Remote machine
- Select the directory where you have built the Linux app. If it's not based on GNU Make, also specify the build command line.
- Specify whether you want to synchronize IntelliSense directories with Visual Studio.
- 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屋!