Linux program development is becoming more and more, more and more programs, products need cross-platform, and even some open source projects only support the Linux platform, so mastering the development of Linux is becoming more and more important.
But for the habit of development under Windows, using the VS this universe first IDE, feel Linux under the pure command-line development debugging, or some not accustomed to, the efficiency is somewhat low (except the great God). Then can you use VS to develop debugging Linux programs, after a variety of search, found visualgdb this magical plug-in, through the VS+VISUALGDB can compile and debug Linux programs.
Let's take a look at the process of creating a demo.
Configuring virtual Machines
VISUALGDB support for Linux is the principle of SSH to the Linux system via SSH to the Linux command, the specific principle is not much to say, crossing network.
Now that you need a Linux system and VS is a Windows system, you need a virtual machine.
You can use either VMware or Visual box.
First configure the network, the host and the virtual machine can ping each other.
Then clear the firewall to
Iptables-f
Create Demo
Once you've configured your environment, you're ready to start creating a demo.
Editing and debugging
Resources
Using Visual Studio to develop Linux apps
debugging Linux programs with VS+VISUALGDB compilation