ptrace: Improve debug messages