Add some debugging options

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>