Steps:

  1. Set UnrealBuildTool as startup project.
  2. Open UnrealBuildTool Properties page.
  3. Add arguments to the ‘Command line arguments’ under the section ‘Debug’
    • If you want to debug the phase of generating project file, use -ProjectFiles
    • If you want to debug building phase, use parameters from the ‘BuildCommandLine’ of UE4 Property Page which is exactly executed when you build the project as usual.

Tips: Sometime the break points will not be triggered without any reason. It often happens after you execute GenerateProjectFiles.bat or other scripts that call UBT from commandline. In this case, you just need to rebuild UBT.

Then you can start your debug. Have fun!


For any problems about this article, feel free to rise an issue to me. Issue
If this article is usful for you, welcome to follow my github. Follow @gcmiao

Go back Home