Arduino For VS 2015
Written by Harry Fairhead   
Tuesday, 01 September 2015

Microsoft isn't the only one trying to get Windows into the IoT. Visual Micro has just released the beta of Arduino for Visual Studio 2015 - and it is free. 

arduino

There have been versions of the Arduino add-in for earlier versions of Visual Studio, but this one installs to VS 2015. You can still get the earlier versions, but given you can use the free Visual Studio 2015 Community Edition there really doesn't seem to be too much of a reason to stay with old software. 

You have to have VS 2015 installed along with the C++ language installed and it is worth remember that this doesn't happen by default. 

Once you have the plugin running you can work with an Arduino as if you were using the Arduino IDE, which really does raise the question of why you would move to VS? 

The simple answer is because you already know VS and because the plugin does offer some improvements. To quote Visual Micro:

"IDE features such as:- see/edit library sources, jump to code definition, jump to compiler error, class explorer, intellisense, remembers board and Arduino version per project, code completion and a super fast compiler make learning and programming Arduino faster and easier."

 

arduinoVS

 

However, the real attraction of the approach is the optional debugger, which isn't free but at $19 for a personal, one-machine, licence might well be worth it. If you want a commercial license then it is only $49 for one machine. A 30-day free trial of the debugger is included in the free plugin so you can get hooked before buying. 

"The debugger is unique and for the first time enables Arduino developers to monitor a running Arduino by simply clicking the code they want to monitor.

The concept of clicking code and adding break or trace points is common practise. The unique element that Visual Micro provides is to silently add (inject) special (known protocol) Arduino 'Serial' instructions during compilation without altering the developers original source code.

The debugger also listens for the special debug Serial messages and populates the various debugger status windows to reflect what is happening  on the Arduino. When required, for break points that pause and wait, the 'Serial' is also used by the Arduino to listen for the F5 Continue command.

The debugger supports many features found in hardware debug tools such as conditional breakpoints, hit counters and update of variables without need to re-compile. There is also a few features not found in other debug tools such as timed break points and trace points (ie: every x millis). "

Notice that this isn't a hardware debugger. Special instructions have to be inserted into the code and this means that some aspects of debugging aren't interactive. For example, to change the breakpoints you have to recompile the code. 

You can see the plugin in action in this video, but be warned this is of a much earlier version:

 arduino

Banner


Data Wrangler Gets Copilot Integration
11/11/2024

Microsoft has announced that Copilot is being integrated into Data Wrangler. The move will give data scientists the ability to use natural language to clean and transform data, and to get help with fi [ ... ]



Visual Studio 17.12 Released Along With Aspire
25/11/2024

Visual Studio 2022 v17.12 is now available. The release can be used for .NET 9 projects and has a range of other improvements.


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

 

 

 

Last Updated ( Tuesday, 01 September 2015 )