exists there a way to debug reports?

i've got a report that works fine without the use op parameters.
when i replace the fixed value with a parameter in the sql, the report runs indefinitely.
is there a way to see to see the query that is send to the db2 server by reporting services?
before:
where year(fieldd1) = 2008
after:
where year(field1) = @year