How to debug editor?

I have downloaded source version of ue 4 ,and want to see how does it works.

but I don’t know how to debug ,when debug ,it just show a project window and stop debugging after open or create any project.

The point is, I can add some break point in VS and see how it works while I drag some blueprint into PIE or Drag(Scale, rotate, change view or anything).

I have try Debug Editor、Debug Client and so on ,it always end with a hint like"Project file not found: …/…/…/UE4Client/UE4Client.uproject" or something else.

Our project wizard spawns a new editor instance to open the project you load or create. You have a few ways around that:

  • Let it spawn the new instance and then attach Visual Studio to it (Debug → Attach to Process).
  • If your project doesn’t have C++ code, then specify the project file you want to use in the Visual Studio debug options for the UE4 VS project (UE4 → Properties → Debugging → Command Arguments, and add the full path to your .uproject file here, eg, “D:\Unreal Projects\MyGame\MyGame.uproject”, or alternatively use the UnrealVS extension which exposes the same setting on the toolbar).
  • If your project has C++ code, just open its Visual Studio solution and build and run the Debug Editor configuration from there.
1 Like

Thanks, it makes great help!