Election debate reveals party stances on homosexuality