Sunday, May 17, 2015

Debugging Arduino from Visual Studio

Please review the following before you continue as they are related:
http://hodentek.blogspot.com/2015/05/internet-of-things-arduino-and-visual.html

When you use the Local Debugger Tool in Visual Studio 2013 Community edition with your Arduino UNO board the build output windows as seen in this next image refers to a Serial Port Tool Bar.


If the board is not connected when you locally debug you get the following message in your build output window:
serialPortToolBar1

You may not see this Serial Port Toolbar unless you enable it as shown:

serialPortToolBar2

Since the board is not connected to the computer with the USB, the debugger is off and you get the message 'Port failed to open'.

serialPortToolBar3

Now I connect the Arduino UNO board to the laptop and on the Arduino UNO I click Reconnect and then I can stop/start/pause the processes to debug.





serialPortToolBar4

Placed a break point to see how to get to the local debugger windows.

serialPortToolBar7

Reading Serial port:
http://hodentek.blogspot.com/2015/06/arduinos-analog-serial-readout-with.html
 

No comments:

DMCA.com Protection Status