Learning a questionable codebase

Posted by robotisland@reddit | learnprogramming | View on Reddit | 6 comments

There's a large codebase that used to work but stopped working a couple of days ago. My job is to fix the issue.

The code was written by a former employee who left the company a few months ago. I reached out to him, and it turns out he wrote the code using ai and doesn't fully understand it.

The code has lots of unnecessary features and extra complexity.

What's the best way to learn a large codebase, especially when it's unnecessarily complex?

How can a large problem like "learn and fix a large codebase" be broken down into more manageable chunks?