Add debug option

Signed-off-by: Tomoe Sugihara <tomoe@midokura.com>