Follow this guide: http://www.ucapps.de/howto_debug_midi.html
TODO: could be transfered into the Wiki