Skip to content

Commit ba482d9

Browse files
committed
Questions
1 parent 1d66952 commit ba482d9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

haskell-debugger/GHC/Debugger/Monad.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,13 @@ runDebugger l rootDir compDir libdir units ghcInvocation' extraGhcArgs mainFp co
343343
mainGhcThread :: Ghc a
344344
mainGhcThread = do
345345
-- Initializes interpreter!
346+
-- FIXME: Do these affect affect the loading of the debugee code? and which ones are required?
347+
--
348+
-- I guess these are important for it to be debuggable?
349+
-- `GHC.gopt_set` GHC.Opt_IgnoreOptimChanges
350+
-- `GHC.gopt_set` GHC.Opt_IgnoreHpcChanges
351+
-- `GHC.gopt_set` GHC.Opt_UseBytecodeRatherThanObjects
352+
-- `GHC.gopt_set` GHC.Opt_InsertBreakpoints
346353
_ <- GHC.setSessionDynFlags dflags2
347354

348355
-- Initialise plugins here because the plugin author might already expect this

0 commit comments

Comments
 (0)