<div dir="ltr">I started by looking everywhere I thought I called printf in this particular case, and couldn't find a single problematic printf. Given the input I was using, I thought I knew where the printf was probably going to be. But that failed, and there are hundreds throughout the rest of the program. (I use them for generating output and warning/error messages--- I happen to like the format string method of describing your output.)<div><br></div><div>Then I thought, I sure would like to learn more about the debugger and profiling, so I thought it was worth asking. I never have gotten clear on how to compile libraries for profiling. </div><div><br></div><div>While waiting for a reply here, it struck me where the printf was, and I found it and solved the problem. So there's not an immediate need for the stack trace.</div><div><br></div><div>D</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 5, 2015 at 12:11 AM, Magnus Therning <span dir="ltr"><<a href="mailto:magnus@therning.org" target="_blank">magnus@therning.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
Dennis Raddle writes:<br>
<br>
> I'm getting an error, printf not having enough arguments. I need to<br>
> find where this is happening, and I understand there are ways of<br>
> getting a stack trace, but apparently I need to compile for profiling.<br>
> That means I need to compile my one library dependency<br>
> (Text.XML.Light) for profiling, I believe. How do I do this? I'm on<br>
> Windows and have only installed libraries in the past with cabal.<br>
<br>
</span>How many calls to `printf` do you actually have?<br>
<br>
Wouldn't a search for all calls and a quick inspection of them be good<br>
enough?<br>
<br>
/M<br>
<br>
--<br>
Magnus Therning                      OpenPGP: 0xAB4DFBA4<br>
email: <a href="mailto:magnus@therning.org">magnus@therning.org</a>   jabber: <a href="mailto:magnus@therning.org">magnus@therning.org</a><br>
twitter: magthe               <a href="http://therning.org/magnus" rel="noreferrer" target="_blank">http://therning.org/magnus</a><br>
<br>
If our ideas of intellectual property are wrong, we must change them,<br>
improve them and return them to their original purpose. When<br>
intellectual property rules diminish the supply of new ideas, they<br>
steal from all of us.<br>
     -- Andrew Brown, November 19, 2005, The Guardian<br>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>