Better debug for debugApis option