Using ghci, if I have something like
1 g x y =
2 let -- ...
3 in -- ... (recursively calls itself)
3
4
5 f x = -- ... (calls g once)
I can set a breakpoint at g using :break g, call f, and have the program break every time g gets called.
However, I'm not using g anywhere else, so I would like to write
1 f x =
2 let g x' y =
3 let -- ...
4 in -- ...
5 in -- ...
Is there a way to break every time g gets called? I noticed that if g is one line, I can just say :break 2.
I can also break at the let statement for g, using :break 3; but, I would like to bind the arguments g gets called with, and I don't think that lets me do that.