BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Linux Debugging Comes to Visual Studio

| by Jeff Martin Follow 5 Followers on Nov 19, 2015. Estimated reading time: 1 minute |

Microsoft has released a preview of its new Visual Studio GDB extension, contributing to their ongoing effort to make Visual Studio support as many development environments as possible.  Microsoft's Marc Goodner has provided details of this new ability, which can be used with Visual Studio 2015 Community edition or higher.   

Once installed, this extension provides a new Project target under Visual C++ ->Cross Platform called “Makefile Project (GDB)”.  Once created, an SSH client will be needed on your local/host Windows machine to enable communication.  As Goodner explains, certificates have to be generated to enable secure communication but do note that pass phrases cannot be used at this time so it probably makes sense to generate a separate certificate just for this purpose.  You will also want to make your first connection using your SSH client outside of Visual Studio so the certificate can accepted.  Subsequent connections can then be made within Visual Studio.

Once a connection is established, your development cycle follows the following process.  First, source files are copied from your local machine (running Visual Studio) to your remote Linux machine.  The compiler present on Linux is used to compile your source code, and the output of the debugger is relayed back to Visual Studio via your freshly defined SSH tunnel. 

Goodner points out that this cycle does not require a separate machine, it is possible to define a local profile that uses the MinGW tools to provide a compiler and debugger.  In either scenario the result provides developers with a way to combine Visual Studio with development on Linux.  For those looking to get started with the extension, Goodner provides an illustrated guide in his announcement.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT