# Prevent crashes on exceptions when debugging?

**URL:** <https://forums.unrealengine.com/t/prevent-crashes-on-exceptions-when-debugging/329374>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** xcode, unreal-engine, crash, editor, UE4, question, CPP\
**Created:** [August 20, 2015, 4:40pm UTC](https://forums.unrealengine.com/t/prevent-crashes-on-exceptions-when-debugging/329374 "2015-08-20T16:40:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_08c2fdfc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_08c2fdfc](https://forums.unrealengine.com/u/anonymous_user_08c2fdfc)\
**Post date:** [August 20, 2015, 4:40pm UTC](https://forums.unrealengine.com/t/prevent-crashes-on-exceptions-when-debugging/329374/1 "2015-08-20T16:40:41Z")

</div>

The whole UE4 editor stops when it encounters an exception. Is there a way to prevent this, just stop the game and return to the editor?

I had this problem both on mac OS X and windows.

The only way to debug (being able to set breakpoints) my app on OS X in Xcode is to select the active scheme “ProjectNameEditor - Mac \> My Mac”. But it takes a while to launch and stops as soon as there is an exception. Is there a better way?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_08c2fdfc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_08c2fdfc](https://forums.unrealengine.com/u/anonymous_user_08c2fdfc)\
**Post date:** [August 20, 2015, 4:56pm UTC](https://forums.unrealengine.com/t/prevent-crashes-on-exceptions-when-debugging/329374/2 "2015-08-20T16:56:49Z")

</div>

It would be better to just stop the game when it fails assertions. Is that possible? Or there is no easy way to just keep the editor running and only debug the game?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_08c2fdfc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_08c2fdfc](https://forums.unrealengine.com/u/anonymous_user_08c2fdfc)\
**Post date:** [August 20, 2015, 5:04pm UTC](https://forums.unrealengine.com/t/prevent-crashes-on-exceptions-when-debugging/329374/3 "2015-08-20T17:04:07Z")

</div>

Ok thank you, I’ll re-accept the answer (weird). So every C++ developers relaunch the whole editor on each assertion fail? Ouch!!!

---

<div class="post-metadata">

**Author:** ![darkgaze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darkgaze](https://forums.unrealengine.com/u/darkgaze)\
**Post date:** [September 13, 2017, 9:03am UTC](https://forums.unrealengine.com/t/prevent-crashes-on-exceptions-when-debugging/329374/4 "2017-09-13T09:03:47Z")

</div>

Yep: Sounds like it. Unreal is hell for c++ programmers.

---

<div class="post-metadata">

**Author:** ![Theflyingpanda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Theflyingpanda](https://forums.unrealengine.com/u/Theflyingpanda)\
**Post date:** [November 23, 2024, 12:25pm UTC](https://forums.unrealengine.com/t/prevent-crashes-on-exceptions-when-debugging/329374/5 "2024-11-23T12:25:09Z")

</div>

I am a bit late to the party but.

You can launch the game as a Standalone game from the editor.  
If the game crashes, then that process crashes, not the editor.

Hope it helps 😃
