title: EUnit output debug info from tested modules
body: <p>Let us say I have a module called <code>example.erl</code></p>
  
  <p>In this module I use the following construct for debugging:</p>
  
  <pre><code>%%% Switch debugging output on/off:
  %-define(DBG(Str, Args), ok).
  -define(DBG(Str, Args), io:format(Str, Args)).
  </code></pre>
  
  <p>It helps me to output various debugging info into the Erlang shell:</p>
  
  <pre><code>?DBG("Function fun1 starting... ~n", [])
  </code></pre>
  
  <p>But if I call <code>example.erl</code> from <code>example_tests</code> with <code>example:test()</code>, this output info does not appear. </p>
  
  <p>How can I make it visible during a EUnit test?</p>
  
  <p>UPD: I have found <a href="http://www.erlang.org/doc/apps/eunit/chapter.html#Debugging_macros" rel="noreferrer">some related info</a>, but I still do not know how to solve the issue.</p>