How to debug build files?

How to debug build files? I need to trace UEBuildPlatform.cs and UEBuildAndroid.cs

I build UE from sources, opened a project, found the interested file, make break points, attached debugger and tried to build the file. No one break point were caught.

Is there a way to trace the building?