title: How to dump lua function chunk to string?
body: <p>How to dump lua function chunk to string ?</p>
  
  <pre><code>function test(a, b)
    local c = a + b
    return c
  end
  
  print( type(test) )  --&gt; function
  print( test )         --&gt; function: 0053B108
  print( dumpToString(test) )
  </code></pre>
  
  <p>I wish dumpToString result is following:</p>
  
  <pre><code>function test(a, b)
    local c = a + b
    return c
  end
  </code></pre>
  
  <p>How to do this ?</p>
  
  <p>=== update1 === <br>
  I want to automatically log and inject code.</p>