That part's on you. Unit tests will help you sometimes, other times you'll have to trace the flow of execution yourself (or write tests), still other times grep is your best friend. But every situation is different and the only way to learn is by doing.
More on tests as documentation:
Without docs or good tests, it's going to be a matter of search, trial, and error, as Dian is saying.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.