How do I debug C++ code

  1. In Visual Studio, set your Solution Configuration to “Debug Editor”
  2. Build your project.
  3. Make sure Unreal editor is running.
  4. From the visual studio menu, select Debug > Attach to Process, and choose the running Unreal editor.
  5. Run your level from within the editor, and now that the debugger is attached, any breakpoint you’ve placed in Visual Studio should now be hit.
7 Likes