getGlobalPtr: Better debug output
Changes found lying around