# Having to restart editor after c++ changes

**URL:** <https://forums.unrealengine.com/t/having-to-restart-editor-after-c-changes/414916>\
**Category:** Platform & Builds\
**Tags:** debug, reload, build, unreal-engine, CPP, question\
**Created:** [January 18, 2018, 6:51pm UTC](https://forums.unrealengine.com/t/having-to-restart-editor-after-c-changes/414916 "2018-01-18T18:51:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexharrisdcj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alexharrisdcj](https://forums.unrealengine.com/u/alexharrisdcj)\
**Post date:** [January 18, 2018, 6:51pm UTC](https://forums.unrealengine.com/t/having-to-restart-editor-after-c-changes/414916/1 "2018-01-18T18:51:02Z")

</div>

I’m fairly new to programming C++ in UE4, and I’m running into some frustrating workflow issues.

I have the following line inside of a function

```
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Blue, TEXT("This is the log!"));

```

Whenever I change the text int the debug log message, build the code successfully, when I relaunch the PIE expecting to see the updated code, it instead shows what the text said pre-change. The only way I can get it to display correctly is by restarting the UE editor.

Am I missing something here?

---

<div class="post-metadata">

**Author:** ![Firefly74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Firefly74](https://forums.unrealengine.com/u/Firefly74)\
**Post date:** [January 18, 2018, 11:37pm UTC](https://forums.unrealengine.com/t/having-to-restart-editor-after-c-changes/414916/2 "2018-01-18T23:37:49Z")

</div>

Do you have any pluggin in your code ?

Anyway, try the folowing : Windows-\>Developer tools → Modules  
Then find you game module and click the compile button.

I do have the same problem as you, but it linked to my pluggins and this solution works for me 🙂

---

<div class="post-metadata">

**Author:** ![alexharrisdcj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alexharrisdcj](https://forums.unrealengine.com/u/alexharrisdcj)\
**Post date:** [January 19, 2018, 1:45am UTC](https://forums.unrealengine.com/t/having-to-restart-editor-after-c-changes/414916/3 "2018-01-19T01:45:11Z")

</div>

Na, not currently using any Plugins, just a blank c++ project with my few code files in it.

---

<div class="post-metadata">

**Author:** ![Dune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dune](https://forums.unrealengine.com/u/Dune)\
**Post date:** [January 19, 2018, 10:06am UTC](https://forums.unrealengine.com/t/having-to-restart-editor-after-c-changes/414916/4 "2018-01-19T10:06:49Z")

</div>

To compile changes in C++, you either need to close the editor down, compile, and re-open the editor, or use Hot reload of the project.

In the editor, in the top bar, there should be a ‘Compile’ option, which will compile and reload your code.

---

<div class="post-metadata">

**Author:** ![JT\_Mitchell\_DGG1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JT\_Mitchell\_DGG1](https://forums.unrealengine.com/u/JT_Mitchell_DGG1)\
**Post date:** [November 5, 2023, 3:46pm UTC](https://forums.unrealengine.com/t/having-to-restart-editor-after-c-changes/414916/5 "2023-11-05T15:46:12Z")

</div>

Type the command “livecoding.compile” in the unreal engine cmd prompt.
