Visual studio + remote gdb debugging
eclipse, gdb, remote-debugging, visual-studio
Solution
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/
Problem
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.