<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 19, 2015 at 7:08 AM, Joshua Gerrard <span dir="ltr"><<a href="mailto:joshua.gerrard@roli.com" target="_blank">joshua.gerrard@roli.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Thanks to you all, I’ll go with your recommendation and implement the dump function for LangOptions.<div><br><div>Whilst on the topic, I’ve always had trouble getting any debug information out of LLVM and Clang; is there a nice way to get things like that printed to a file  / STDOUT consistently?</div></div></div></blockquote><div><br></div><div>You mean dumps, like -ast-dump, -fdump-record-layout, -emit-llvm, -mllvm -print-after-all, -mllvm -debug, and this kind of thing? We don't have any kind of generic logging infrastructure, if that's what you're thinking.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>The best I’ve found so far involves going into the VS solution settings, adding something like > log.txt to the command line arguments, and hoping it works (it doesn’t always).</div></div></div></blockquote><div><br></div><div>Oftentimes we dump to stderr because it's easy to invoke tools with '-o -', so the output appears on stdout. If you can trick VS into logging stderr, that might help.</div></div></div></div>