DEV Community

Discussion on: Don't let that huge codebase scare you! Tips and tools to make sense of other people's code

Collapse
 
alistairjevans profile image
Alistair Evans

Personally, if I'm landed in front an application I haven't seen before and is complex, I like to get a debugger attached, put a breakpoint in the main method (or a controller action method) and then just step line by line, inspecting what changes and where the code goes.

It can take a while, but it means you are getting the literal truth of what the program does.

This approach particularly helps with badly laid-out code or 'lightly commented' code.

Collapse
 
mjraadi profile image
Mohammadjavad Raadi

Thanks for sharing. I too find myself doing this every so often.

Collapse
 
bernardbaker profile image
Bernard Baker

I think a debugger is a defacto tool. Combining the awk / feel solutions with a debugger has a genuine benefit for everyone.