Add debugging information to bin/detect