<div>I'm trying to find a function reacting for key press in Haskell application. For whatever reason I didn't manage to find the code with grepping. I could probably ask at their mailing list, but that gives me a more general question:</div><div> </div><div>is there a way to set a breakpoint on a library call, and get a stracktrace?</div><div> </div><div>I.e. if I were to debug C++/C code, I'd find a library function reacting on a key press, set a breakpoint (perhaps conditional) there, and upon a break I'd look at backtrace, and find the function (given, an app compiled with debugging symbols).</div><div> </div><div>Can I do the same, i.e. set a break somewhere in a c-style library, and get Haskell stacktrace out of there?</div><div> </div><div>I do understand that ghc is free to reorder function calls, but I don't think it matters very much in my particular case.</div>