There is a nice guide on wiibrew, on debugging with the the USB Gecko and libogc.
I have posted this link on the site and posting it here, as its helpful for developers who want to debug there homebrew code.
check it out
http://www.wiibrew.org/wiki/Debugging