Coding, Debugging, IDEs... - deweyjose/rover GitHub Wiki

Initially I started this project using the WiringPi GPIO interface library for the Raspberry Pi. Instructions on how to download and install the library on the RPi can be found here http://wiringpi.com/download-and-install/.

I found it pretty painful coding on the RPi itself. So I started using a remote development setup using Netbeans. This tutorial is helpful https://netbeans.org/kb/docs/cnd/remotedev-tutorial.html.

wiringPi was fun but I fell back to Python and the libraries published by the Ion Motion, the manufacturer of the motor controller. You'll need to make sure that the GPIO python modules are installed - they should be by default. Documentation for this library is a google exercise :|.

The most convenient IDE I've found so far is Komodo while working with Python. It's remote debugging setup has been the most straight forward. It's a commercial product with a 21-day fully featured license. We'll see if I pay up...

In order to debug remotely on the RPi itself you need to run this on the RPi: pip install komodo-python-dbgp

The Komodo documentation for remote debugging is pretty straight forward. Essentially the IDE opens a debug port on the local machine. The code running on the RPi is configured with settings that enable it to "call home". All in all it was pretty easy to standup and step through code.