Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to debug and fix build problems ?


I've wrote small plugin and trying to build game with this plugin. I've faced with link time problems: unresolved externals etc..

The question is: How can I debug building process ? I saw files with externsion: Build.cs, and it's clearly that they are executing during build... How can I set breakpoints to these files ? Or see which include paths corresponding to projects, what static libraries are linking etc... Because now it's like a black box - and no way to diagnose build problem...

Thanks in advance, Oleksandr "loopzilla" Maniliuk.

Product Version: Not Selected
more ▼

asked May 18 '14 at 10:01 PM in C++ Programming

avatar image

31 1 2 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi, if you have full source code you can just debug UnrealBuildTool with the following command line (right click on UnrealBuildTool project -> properties -> Debug -> Start Options) set in Visual Studio:

 TargetName Platform Configuration

So assuming your game editor target name is MyGameEditor:

 MyGameEditor Win64 Debug

Then just set UnrealBuildTool as your startup project in VS and Debug. All breakpoints set in you build.cs file should just work.

more ▼

answered May 19 '14 at 03:37 PM

avatar image

robert.manuszewski STAFF
318 8 3 9

avatar image loopzilla May 20 '14 at 09:36 PM

Thanks for the answer !

But it doesn't work :( I've set UnrealBuildTool of my project as startup, chaned command line in Start options to: MyGameEditor Win64 Debug Working dir by default is empty... Set breakpoints into all funcitons in build.cs files. No breakpoints are trigered during run :(

Thanks in advance, Oleksandr

avatar image robert.manuszewski STAFF May 21 '14 at 02:30 PM

Does setting any breakpoints inside of UBT work? For example in UnrealBuiltTool.cs, private static int Main(string[] Arguments)?

avatar image loopzilla May 21 '14 at 08:47 PM

Yes, in this file breakpoint works.

avatar image robert.manuszewski STAFF May 22 '14 at 07:26 PM

Ok, I tried that with a project created from a template 'basic code', and there should be one more parameter in that command line (path to the uproj file of the project you want to compile).

MyBasicCodeProjEditor Win64 Development "C:\Users\user.name\Documents\Unreal Projects\MyBasicCodeProj\MyBasicCodeProj.uproject"

I added a brakpoint inside MyBasicCodeProjEditorTarget constructor and it worked fine.

avatar image loopzilla May 23 '14 at 09:27 PM

Thank you,

All works fine - it really helped.

Best regards, loopzilla

avatar image demented_hedgehog Dec 08 '14 at 02:21 AM

Good. Now how do you do it from the command line on linux?

avatar image toxicg0d Jun 23 '18 at 10:29 AM

Just spent a couple hours wondering why this wasn't working, so hopefully this helps someone.

You will not be able to debug your project's Build.cs files if your UnrealBuildTool's configuration is set to Development. Set it to Debug to make sure your project's symbols get loaded.

The command-line arguments for the UnrealBuildTool should match the names of your target files. So for instance, if your game's name is MyGame and you're building your server, your configuration is DebugGame and your architecture is Win64, your arguments would be:

MyGameServer Win64 DebugGame D:\Path\To\Project\MyGame.uproject

Hope this helps.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question