# Debug system

**URL:** <https://discourse.cataclysmdda.org/t/debug-system/3249>\
**Category:** The Toolbox\
**Created:** [September 26, 2013, 5:05pm UTC](https://discourse.cataclysmdda.org/t/debug-system/3249 "2013-09-26T17:05:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [September 26, 2013, 5:05pm UTC](https://discourse.cataclysmdda.org/t/debug-system/3249/1 "2013-09-26T17:05:40Z")

</div>

I do something wrong with pointers and got seg.fault.  
Question: cataclysm has debug to out in file without stop the game? How to use it?

---

<div class="post-metadata">

**Author:** ![yobbo](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@yobbo](https://discourse.cataclysmdda.org/u/yobbo)\
**Post date:** [October 10, 2013, 10:29pm UTC](https://discourse.cataclysmdda.org/t/debug-system/3249/2 "2013-10-10T22:29:27Z")

</div>

I think

```auto
DebugLog() << "some debug message";
```

is the easiest way to write stuff to a file for debugging. It writes to “logg.txt”.

The debug messaging system is in need of a cleanup itself.
