Announcement

Collapse
No announcement yet.

Debugging build.cs [c#] files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Debugging build.cs [c#] files

    Hello,

    I wonder there is any option to set break point in build.cs file.

    #2
    Yes. Here are instructions for VS2019:

    1. Checkout the sources from github*.
    2. Set UnrealBuildTool as your StartUp project.
    3. Set the Debug arguments on UnrealBuildTool target to a valid build target. For example, I have a target named ShooterGameEditor.Target.cs, so I use -Target="ShooterGameEditor Win64 Debug"
    4. Set your breakpoint in any Target.cs or Build.cs files you want to debug.
    5. Start the debugger.

    * If you generate a VS project using a version of UE4 you installed from the Epic launcher, you won't have the UnrealBuildTool target.

    Comment


      #3
      Just to note, you don't need a source engine build for this. UBT project and source files are included in launcher builds too, just open Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj in Visual Studio.

      Comment

      Working...
      X