Scrapped it out from my answer on cognos communities, maybe it’ll help someone.
Drill-through is really to tough to debug.
Prior to 8.3 I’ve used following routine:
ParamDisplayValue (?param?)
and ParamValue(?param?)
This will show you what is passed and, maybe, will clarify things a bit.
Since 8.3 you’ve can see passed values under the link you’re pressing — really helpfull.