robotcode-repl 2.9.0.dev197__py3-none-any.whl → 2.9.0.dev230__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- robotcode/repl/__version__.py +1 -1
- robotcode/repl/_debug/__init__.py +0 -2
- robotcode/repl/_debug/controller.py +0 -13
- robotcode/repl/_debug/types.py +0 -9
- robotcode/repl/_session.py +211 -311
- robotcode/repl/_windows_job.py +166 -0
- robotcode/repl/cli.py +16 -22
- robotcode/repl/doc_cli.py +3 -0
- robotcode/repl/session_cli.py +77 -97
- {robotcode_repl-2.9.0.dev197.dist-info → robotcode_repl-2.9.0.dev230.dist-info}/METADATA +2 -2
- {robotcode_repl-2.9.0.dev197.dist-info → robotcode_repl-2.9.0.dev230.dist-info}/RECORD +13 -12
- {robotcode_repl-2.9.0.dev197.dist-info → robotcode_repl-2.9.0.dev230.dist-info}/WHEEL +0 -0
- {robotcode_repl-2.9.0.dev197.dist-info → robotcode_repl-2.9.0.dev230.dist-info}/entry_points.txt +0 -0
robotcode/repl/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.9.0-dev.
|
|
1
|
+
__version__ = "2.9.0-dev.230"
|
|
@@ -11,7 +11,6 @@ are concerns of a particular front-end. The CLI front-end is the
|
|
|
11
11
|
from .controller import DebugController
|
|
12
12
|
from .types import (
|
|
13
13
|
Breakpoint,
|
|
14
|
-
BreakpointState,
|
|
15
14
|
DebugTerminated,
|
|
16
15
|
Frontend,
|
|
17
16
|
ResumeAction,
|
|
@@ -24,7 +23,6 @@ from .types import (
|
|
|
24
23
|
|
|
25
24
|
__all__ = [
|
|
26
25
|
"Breakpoint",
|
|
27
|
-
"BreakpointState",
|
|
28
26
|
"DebugController",
|
|
29
27
|
"DebugTerminated",
|
|
30
28
|
"Frontend",
|
|
@@ -9,7 +9,6 @@ Registered as an execution observer via ``BaseInterpreter.register_observer``.
|
|
|
9
9
|
"""
|
|
10
10
|
|
|
11
11
|
import contextlib
|
|
12
|
-
import dataclasses
|
|
13
12
|
import re
|
|
14
13
|
import reprlib
|
|
15
14
|
import weakref
|
|
@@ -28,7 +27,6 @@ from robotcode.robot.utils.variables import is_variable
|
|
|
28
27
|
from ..base_interpreter import result_definition_names, result_qualified_name
|
|
29
28
|
from .types import (
|
|
30
29
|
Breakpoint,
|
|
31
|
-
BreakpointState,
|
|
32
30
|
DebugTerminated,
|
|
33
31
|
Frontend,
|
|
34
32
|
ResumeAction,
|
|
@@ -247,17 +245,6 @@ class DebugController:
|
|
|
247
245
|
self._breakpoints.remove(bp)
|
|
248
246
|
return True
|
|
249
247
|
|
|
250
|
-
def breakpoint_state(self) -> BreakpointState:
|
|
251
|
-
"""The breakpoints and the exception breakpoints as they are, for `restore_breakpoints` in another process."""
|
|
252
|
-
return BreakpointState(list(self._breakpoints), self._next_bp_id, sorted(self._exception_filters))
|
|
253
|
-
|
|
254
|
-
def restore_breakpoints(self, state: BreakpointState) -> None:
|
|
255
|
-
"""Take over the breakpoints of `breakpoint_state`, in place of those set so far. Their hit counts start at 0,
|
|
256
|
-
as `.ignore` counts the hits of a run."""
|
|
257
|
-
self._breakpoints = [dataclasses.replace(bp, hits=0, reached=False) for bp in state.breakpoints]
|
|
258
|
-
self._next_bp_id = state.next_id
|
|
259
|
-
self._exception_filters = set(state.exception_filters)
|
|
260
|
-
|
|
261
248
|
def set_exception_breakpoints(self, filters: Iterable[str]) -> None:
|
|
262
249
|
"""Arm exception breakpoints. Recognised filters: ``failed_keyword``
|
|
263
250
|
(stop at every failing keyword) and ``uncaught_failed_keyword`` (only
|
robotcode/repl/_debug/types.py
CHANGED
|
@@ -98,15 +98,6 @@ class Breakpoint:
|
|
|
98
98
|
return f"{self.name}" if self.kind == "keyword" else f"{self.location}:{self.line}"
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
@dataclass
|
|
102
|
-
class BreakpointState:
|
|
103
|
-
"""The breakpoints and the exception breakpoints of a `DebugController` as they are, for one in another process."""
|
|
104
|
-
|
|
105
|
-
breakpoints: List[Breakpoint]
|
|
106
|
-
next_id: int
|
|
107
|
-
exception_filters: List[str]
|
|
108
|
-
|
|
109
|
-
|
|
110
101
|
@dataclass
|
|
111
102
|
class StopEvent:
|
|
112
103
|
reason: StopReason
|