#2803: bring full top level of a module in scope when a breakpoint is hit in the
module
---------------------------------+------------------------------------------
    Reporter:  phercek           |        Owner:             
        Type:  feature request   |       Status:  new        
    Priority:  normal            |    Milestone:  6.12 branch
   Component:  GHCi              |      Version:  6.8.3      
    Severity:  normal            |   Resolution:             
    Keywords:  debugger          |   Difficulty:  Unknown    
    Testcase:                    |           Os:  Linux      
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by phercek):

 Having this implemented is also very handy for user defined command for
 conditional breakpoints. Sometimes I find myself in need to stop based on
 some structure member which accessor function is not exported. In such a
 case, I cannot use it in the code for the conditional breakpoint. To make
 this work my user defined conditional breakpoint command needs one more
 argument to specify the module name for explicit :module commands. This
 sucks. I tried to find out how to get the module name automatically when
 stopped at a breakpoint but the only think I can get is the file name
 using ":show context". The problem is that the file name does not need to
 correspond to the module name.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2803#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to