Refactoring of debug information reader/writer