image/svg+xml
Exceptions With Backtraces
David Eichmann
ghc -prof -fprof-auto Main.hs
HasCallStack
DWARF
Can I just have my backtrace please?
./Main +RTS -xc
HasCallStack
Yes You Can!
Exceptions are decorated with a backtrace by default!
catchWithBacktrace
Backtraces are collected on /
becomes the new root of the Exception heirarchy
Thank You
Implementation
Now Exceptions have Backtraces!
1
Cover
No Backtrace
Profiled
HasCallStack
HasCallStack
DWARF
Can We?
Yes
Exceptions Have Backtraces
Success!
Implementation
catch
New frame