Re: Debugging GHC with GHCi

2017-01-10 Thread Thomas Jakway
Thanks very much, I'll give that a shot. On 01/09/2017 08:12 AM, Simon Marlow wrote: On 9 January 2017 at 04:51, Ben Gamari > wrote: Thomas Jakway > writes: > I want to be able to load

Re: Debugging GHC with GHCi

2017-01-09 Thread Simon Marlow
On 9 January 2017 at 04:51, Ben Gamari wrote: > Thomas Jakway writes: > > > I want to be able to load certain GHC modules in interpreted mode in > > ghci so I can set breakpoints in them. I have tests in the testsuite > > that are compiled by

Re: Debugging GHC with GHCi

2017-01-08 Thread Ben Gamari
Thomas Jakway writes: > I want to be able to load certain GHC modules in interpreted mode in > ghci so I can set breakpoints in them. I have tests in the testsuite > that are compiled by inplace/bin/ghc-stage2 with -package ghc. I can > load the tests with ghc-stage2

Re: Debugging GHC with GHCi

2017-01-08 Thread Richard Eisenberg
> On Jan 8, 2017, at 8:33 PM, Thomas Jakway wrote: > > Currently I'm using trace & friends to do printf-style debugging but it's > definitely not ideal. I don't have an answer to your question, but I can tell you that this is exactly what I do. It's not ideal at all. If you