Adding debug statements

Signed-off-by: Philippe Ombredanne <pom@nexb.com>