title: How do I get the output of Erlang's preprocessor?
body: <p>I've got a weird macro that I'm debugging and I can't seem to figure out how to get the output of the preprocessor. I'm looking for the equivalent of GCC's <code>-save-temps</code>. I've tried passing <code>dpp</code> to <code>compile:file/2</code>, but it seems to generate a parse tree, not preprocessed Erlang.</p>
  
  <p><code>compile:file("t.erl", 'E').</code> as mentioned by Anton is great, but doesn't help with macros that cause syntax errors. Lacking a way to debug complicated macros, I'm leaning toward doing my metaprogramming by writing programs that generate code.</p>