Debug the get contents function.