I tried to debug my dynamic query via dbms_output but seems like the query string is too long for dbms_output buffer.
dbms_output
I got :
Here you go:
DECLARE BEGIN dbms_output.enable(NULL); -- Disables the limit of DBMS -- Your print here ! END;