You can use the @DEBUG parameter with most procedures if additional debugging is necessary.
This results in a very verbose execution that contains state change information and call stack details and other background call details to assist with debugging certain issues.
@DEBUG = 'YES'