debug icon indicating copy to clipboard operation
debug copied to clipboard

Typing DebugView.debugView is now needed...

Open marklnichols opened this issue 7 years ago • 7 comments

Can we reconfigure things so that only 'debugView' needs to be entered as per the current documentation?

marklnichols avatar Feb 19 '18 13:02 marklnichols

As far as I can tell, the current docs still work. What problem are you seeing?

ndmitchell avatar Feb 19 '18 15:02 ndmitchell

I get:

interactive :1:1: error: * Variable not in scope: debugView * Perhaps you meant `Debug.debugView' (imported from Debug)

marklnichols avatar Feb 19 '18 17:02 marklnichols

What instructions are you following? Any deviations?

ndmitchell avatar Feb 19 '18 18:02 ndmitchell

It seems that all such problems go away if I specifically load the Debug module via :m + Debug

The different form of the error message (with the "Perhaps you meant...") made me think it was a different problem...so it is covered by the documentation (via the comment in the FAQ)

I seem to always need to specifically load Debug via. :m -- do you not need to do that? I can't find anything I'm doing differently from the instructions, other than using stack commands for ghci, etc.

Maybe that ":m + Debug" should be part of the main instructions rather than part of the FAQ?

marklnichols avatar Feb 19 '18 21:02 marklnichols

Which instructions are you following? I'm following the ones at https://github.com/ndmitchell/debug#haskell-debugger----

ndmitchell avatar Feb 19 '18 23:02 ndmitchell

Yes, those same instructions. Could it be a difference between calling ghci directly vs stack ghci?

marklnichols avatar Feb 20 '18 01:02 marklnichols

Which debug is stack ghci picking up? Does the issue go away if you run ghci directly? What happens if you run stack exec ghc-pkg list?

ndmitchell avatar Mar 07 '18 20:03 ndmitchell