haskell-debugger
Safe HaskellNone
LanguageGHC2021

GHC.Debugger.Run

Contents

Synopsis

Documentation

data EvalLog Source #

Constructors

LogEvalModule Module 

Instances

Instances details
Pretty EvalLog Source # 
Instance details

Defined in GHC.Debugger.Run

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).

continueToCompletion :: Debugger ExecResult Source #

Resume execution with single step mode RunToCompletion, skipping all breakpoints we hit, until we reach ExecComplete.

We use this in doEval because we want to ignore breakpoints in expressions given at the prompt.

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

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