# Is it possible to debug engine code without building from source?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-debug-engine-code-without-building-from-source/639720>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 2, 2022, 9:30am UTC](https://forums.unrealengine.com/t/is-it-possible-to-debug-engine-code-without-building-from-source/639720 "2022-09-02T09:30:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve\_kuva](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@steve\_kuva](https://forums.unrealengine.com/u/steve_kuva)\
**Post date:** [September 2, 2022, 9:30am UTC](https://forums.unrealengine.com/t/is-it-possible-to-debug-engine-code-without-building-from-source/639720/1 "2022-09-02T09:30:29Z")

</div>

I want do debug some code inside one of the engine’s own plugins, but setting a breakpoint in my IDE doesn’t seem to be working. I have the editor debug symbols installed, which I thought would be enough, or is it required to build the whole engine from source in order to be able to debug engine function calls etc.?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 2, 2022, 9:54am UTC](https://forums.unrealengine.com/t/is-it-possible-to-debug-engine-code-without-building-from-source/639720/2 "2022-09-02T09:54:00Z")

</div>

You don’t need to build the engine, but you do need the source

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/4/1c41a19c6f30988b1013ec47cff638a37e7ba8ef.png)

---

<div class="post-metadata">

**Author:** ![steve\_kuva](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@steve\_kuva](https://forums.unrealengine.com/u/steve_kuva)\
**Post date:** [September 2, 2022, 10:43am UTC](https://forums.unrealengine.com/t/is-it-possible-to-debug-engine-code-without-building-from-source/639720/3 "2022-09-02T10:43:13Z")

</div>

Hmmm, yeah I have that downloaded already too, so that’s not it, but thanks anyway. Will keep trying to figure it out.

---

<div class="post-metadata">

**Author:** ![Pjotr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pjotr](https://forums.unrealengine.com/u/Pjotr)\
**Post date:** [September 2, 2022, 11:20am UTC](https://forums.unrealengine.com/t/is-it-possible-to-debug-engine-code-without-building-from-source/639720/4 "2022-09-02T11:20:03Z")

</div>

Have you regenerated your visual studio project files after downloading the source and symbols? And make sure to start your project from within visual studio, so open de .sln. Make sure the solution configuration is on “Development Editor” and that your startup project is your game. Then hit f5 to start debugging.

---

<div class="post-metadata">

**Author:** ![dBugSlayer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dBugSlayer](https://forums.unrealengine.com/u/dBugSlayer)\
**Post date:** [August 6, 2024, 3:19am UTC](https://forums.unrealengine.com/t/is-it-possible-to-debug-engine-code-without-building-from-source/639720/5 "2024-08-06T03:19:15Z")

</div>

Tried it on Xcode and I was able to attach to the running UnrealEditor process but breakpoints won’t resolve. Any ideas as to what may be the problem? I do have both the source and editor symbols installed. Thanks!

---

<div class="post-metadata">

**Author:** ![dBugSlayer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dBugSlayer](https://forums.unrealengine.com/u/dBugSlayer)\
**Post date:** [August 13, 2024, 9:21pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-debug-engine-code-without-building-from-source/639720/6 "2024-08-13T21:21:05Z")

</div>

Answering my own question about Xcode breakpoints not working, you have to configure the remappings in your .dSYM files. The tutorial below does an amazing job in stating the problem and walking you through on how to solve it.

The tl;dr is that you have to generate .plist files that map the build source files where the engine was compiled in and the source files that are in your machine.

> **[Use the (engine) source, Luke! | Jason Tu](https://jasont.co/debug-unreal-on-mac/)**
>
> On how to set up debug symbols for Unreal Engine C++ on Macs

This other thread also talks about the same issue:

> [@Debugging on macOS, using dSYM files provided by UE4 installer](https://forums.unrealengine.com/t/debugging-on-macos-using-dsym-files-provided-by-ue4-installer/152009/4):
>
> So my question - does it all make sense? And what is the right approach? Yes, it does. This is the right approach as the symbols were built on a different machine from which you’re debugging Unreal in. So lldb is unable to resolve the breakpoints when using absolute file paths. Therefore, a mapping between the building source path and the source path on your machine needs to be created. After reading your post, I eventually ran into the tutorial below, which goes in more details into how it …
