The SP software includes a handful of command line tools (along with the shibd daemon) that can be useful for debugging: