haskell-debugger
Safe HaskellNone
LanguageHaskell2010

GHC.Debugger.Evaluation

Contents

Synopsis

Documentation

data EvalLog Source #

Constructors

LogEvalModule Module 

Instances

Instances details
Pretty EvalLog Source # 
Instance details

Defined in GHC.Debugger.Evaluation

Methods

pretty :: EvalLog -> Doc ann #

prettyList :: [EvalLog] -> Doc ann #

Evaluation

debugExecution Source #

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.