session
python.session.Session
Section titled “python.session.Session”record SessionA debugging session: what its views show and the run for the debugger.
python.session.DebugStop
Section titled “python.session.DebugStop”def DebugStop : TypeWhere the debugger stopped.
python.session.Stopping
Section titled “python.session.Stopping”def Stopping : TypeWhere the debugger stopped, with how many times the run to there entered each node.
python.session.Session.noShows
Section titled “python.session.Session.noShows”def Session.noShows : ShowsNothing shown (a program that could not be read).
python.session.Session.unsupported
Section titled “python.session.Session.unsupported”def Session.unsupported (shows : Shows) (what : String) : SessionA session that cannot run, its views showing shows: it stops at once with the reason what.
python.session.load
Section titled “python.session.load”def load (source : String) : SessionA session for the program whose syntax tree’s JSON is source, at its start with no input yet.
python.session.Session.with
Section titled “python.session.Session.with”def Session.with (x : Session) (d : DebugRun) : SessionThe session x with its run replaced by d.
python.session.Session.withConfiguration
Section titled “python.session.Session.withConfiguration”def Session.withConfiguration (x : Session) (c : Configuration Run Signal python.Stop) : SessionThe session x with its configuration replaced by c.
python.session.Session.breakpoints
Section titled “python.session.Session.breakpoints”def Session.breakpoints (text : String) : List StringThe breakpoints in text: one node per line.
python.session.run
Section titled “python.session.run”def run (kind : Nat) (breakpoints : String) (closed : Nat) (fuel : Nat) (x : Session) : StoppingRuns the session x to the next stop for at most fuel steps: kind 0 continue, 1 step in, 2 step over, 3 step
out; closed 1 when no more input comes; breakpoints one node per line.
python.session.stopConf
Section titled “python.session.stopConf”def stopConf (x : Session) (s : Stopping) : SessionThe session x resumed from the stop s (unchanged when the run cannot go on).
python.session.stopKind
Section titled “python.session.stopKind”def stopKind (s : Stopping) : NatWhich kind of stop s is (the debugging host reads this, not the constructor).
python.session.stopNode
Section titled “python.session.stopNode”def stopNode (s : Stopping) : StringThe node a stop is at (an uncaught exception’s is where it was raised).
python.session.Session.resumable
Section titled “python.session.Session.resumable”def Session.resumable (s : DebugStop) : BoolWhether the stop s is one the run goes on from (a breakpoint or a step).
python.session.Session.stateAt
Section titled “python.session.Session.stateAt”def Session.stateAt (s : DebugStop) : Option RunThe state at the stop s.
python.session.stopOut
Section titled “python.session.stopOut”def stopOut (s : Stopping) : StringThe output so far at the stop s.
python.session.stopErr
Section titled “python.session.stopErr”def stopErr (s : Stopping) : StringThe error output so far at the stop s.
python.session.Session.exception
Section titled “python.session.Session.exception”def Session.exception (e : Raised) : JsonThe uncaught exception e as JSON: its type, its message and where it was raised.
python.session.stopDetail
Section titled “python.session.stopDetail”def stopDetail (s : Stopping) : StringA stop’s details as JSON: the reason for a behavior the model does not specify, or the uncaught exception.
python.session.stopVisits
Section titled “python.session.stopVisits”def stopVisits (s : Stopping) : StringHow many times the run to this stop entered each node, as JSON {"<node>": n} (the debugging host adds them up
for a session’s coverage).
python.session.Session.withInput
Section titled “python.session.Session.withInput”def Session.withInput (text : String) (c : Configuration Run Signal python.Stop) : Configuration Run Signal python.StopThe run in c with text as more input.
python.session.feed
Section titled “python.session.feed”def feed (text : String) (x : Session) : SessionThe session x with text as more input.
python.session.globals
Section titled “python.session.globals”def globals (x : Session) : StringThe global variables of the session x as JSON.
python.session.frames
Section titled “python.session.frames”def frames (at : String) (x : Session) : StringThe calls of the session x, stopped at the node at, as JSON.
python.session.setVarErr
Section titled “python.session.setVarErr”def setVarErr (n : Nat) (id : String) (text : String) (x : Session) : StringWhy the variable id of the n-th call in the session x cannot be set from text (empty when it can).
python.session.setVarConf
Section titled “python.session.setVarConf”def setVarConf (n : Nat) (id : String) (text : String) (x : Session) : SessionThe session x with the variable id of the n-th call set from text (unchanged when it cannot be).
python.session.lines
Section titled “python.session.lines”def lines (table : String) (x : Session) : SessionThe session x with the host’s table of the lines of nodes (JSON: an object from a node to its line): a step
then stops once on a line with several statements, as CPython does.
python.session.env
Section titled “python.session.env”def env (x : Session) : StringThe environment the host shows for the session x (a Python program has none apart from its globals).