# How to write debug messages?

**URL:** https://discourse.cataclysmdda.org/t/how-to-write-debug-messages/2766
**Category:** The Garage
**Created:** [August 20, 2013, 12:07pm UTC](https://discourse.cataclysmdda.org/t/how-to-write-debug-messages/2766 "2013-08-20T12:07:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LazyCat-rus](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@LazyCat-rus](https://discourse.cataclysmdda.org/u/LazyCat-rus)
#### Post date: [August 20, 2013, 12:07pm UTC](https://discourse.cataclysmdda.org/t/how-to-write-debug-messages/2766/1 "2013-08-20T12:07:07Z")

</div>

I need write some debug messages to file. How to do it without pain?

I tryed use dbg like that: dbg(D\_INFO) \<\< string\_fprmat("%s/%s), s1, s2). But my logg.txt is almost empty.  
I’m doing it wrong?

---

<div class="post-metadata">

### Author: ![1942rob](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/1942rob/32/979_2.png) [@1942rob](https://discourse.cataclysmdda.org/u/1942rob)
#### Post date: [August 20, 2013, 3:27pm UTC](https://discourse.cataclysmdda.org/t/how-to-write-debug-messages/2766/2 "2013-08-20T15:27:42Z")

</div>

Use DebugLog() \<\< “SomeText” \<\< someValue;

---

<div class="post-metadata">

### Author: ![LazyCat-rus](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@LazyCat-rus](https://discourse.cataclysmdda.org/u/LazyCat-rus)
#### Post date: [August 20, 2013, 4:32pm UTC](https://discourse.cataclysmdda.org/t/how-to-write-debug-messages/2766/3 "2013-08-20T16:32:43Z")

</div>

> Use DebugLog() \<\< "SomeText" \<\< someValue;

Thank you. It's work.

---

<div class="post-metadata">

### Author: ![GlyphGryph](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/glyphgryph/32/847_2.png) [@GlyphGryph](https://discourse.cataclysmdda.org/u/GlyphGryph)
#### Post date: [August 20, 2013, 4:49pm UTC](https://discourse.cataclysmdda.org/t/how-to-write-debug-messages/2766/4 "2013-08-20T16:49:39Z")

</div>

Since there were some inaccurate accusations in this thread, they’ve been deleted. Carry on.
