From a9bedc18cf7c786e8c99faf36a08eca4c5d9b80b Mon Sep 17 00:00:00 2001 From: ElectronixTM Date: Wed, 2 Apr 2025 00:37:34 +0300 Subject: [PATCH] =?UTF-8?q?chore:=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B8=D0=BB=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8?= =?UTF-8?q?=D1=8E=20=D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D1=82=D0=B5=D0=BA=D1=83=D1=89=D0=B5=D0=B9=20=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=BA=D0=B8=D0=B8=D1=81=D1=85=D0=BE=D0=B4=D0=BD?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=20=D0=BA=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dpdebugger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dpdebugger.py b/src/dpdebugger.py index ec66363..2a82a4b 100644 --- a/src/dpdebugger.py +++ b/src/dpdebugger.py @@ -85,6 +85,9 @@ class Debugger: return "Unknown command" return self._callbacks_table[callback_name](command[1:]) + def get_current_source_line_number(self) -> int: + return self._dbg_dict["instructions"][self._vm.pc.value]['srcline'] + def _reset(self, args: list[str]) -> str: self._vm.reset() return "VM reseted" @@ -98,9 +101,6 @@ class Debugger: return f"Virtual machine exception: {e.message}" return "" - def get_current_source_line_number(self) -> int: - return self._dbg_dict["instructions"][self._vm.pc.value]['srcline'] - def _continue(self, args: list[str]) -> str: try: self._vm.continue_()