Debugging with GHCi.
Bulat Ziganshin
bulat.ziganshin at gmail.com
Tue Apr 4 02:45:49 EDT 2006
Hello Simon,
Monday, April 3, 2006, 11:45:35 PM, you wrote:
>> btw, the basic breakpoint functionality could indeed be provided
>> as a compiler/IDE transformation, but calling out to GHCi makes
>> a lot more sense:
> I think you misunderstand me: I wanted to avoid the recompilation step
> when adding a breakpoint, that's all. The interface would be exactly
but this can be implemented just by adding call to special function
after each operation in I/O monad. this function will check whether we
reached breakpoint and pause program if so. this approach is simpler
to implement and allow easily extend breakpoints' types (line number,
condition, line number+condition, variable changed....). this should
be slower, but i think in most cases this cost should be acceptable
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Cvs-ghc
mailing list