See also: How to debug a charm
This document lists tools that you can use to debug a charm.
juju
jhack