ghc-debugger
Safe HaskellNone
LanguageHaskell2010

GHC.Debugger.Evaluation

Contents

Synopsis

Evaluation

debugExecution Source #

Arguments

:: EntryPoint 
-> [String]

Args

-> Debugger EvalResult 

Run a program with debugging enabled

doContinue :: Debugger EvalResult Source #

Resume execution of the stopped debuggee program

doSingleStep :: Debugger EvalResult Source #

Resume execution but only take a single step.

doLocalStep :: Debugger EvalResult Source #

Resume execution but stop at the next tick within the same function.

To do a local step, we get the SrcSpan of the current suspension state and get its enclosingTickSpan to use as a filter for breakpoints in the call to resumeExec. Execution will only stop at breakpoints whose span matches this enclosing span.

doEval :: String -> Debugger EvalResult Source #

Evaluate expression. Includes context of breakpoint if stopped at one (the current interactive context).

inspectName :: Name -> Debugger (Maybe VarInfo) Source #

Get the value and type of a given Name as rendered strings in VarInfo.