Skip to content

Commit 8b930b9

Browse files
committed
Better debug messages
1 parent 2183eae commit 8b930b9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

modelmachine/ide/debug.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def exec_step(self, *, breakp: bool) -> bool:
137137
def step(self, count: int = 1) -> None:
138138
"""Exec debug step command."""
139139
if self.cpu.control_unit.status == Status.HALTED:
140-
printf(f"{RED}cannot execute command: machine halted{DEF}")
140+
printf(f"{RED}cannot execute 'step': machine halted{DEF}")
141141
return
142142

143143
with self.running():
@@ -174,7 +174,7 @@ def exec_reverse_step(self, *, breakp: bool) -> bool:
174174

175175
def reverse_step(self, count: int = 1) -> None:
176176
if self._cycle == 0:
177-
printf(f"{RED}cannot execute command: cycle=0{DEF}")
177+
printf(f"{RED}cannot execute 'rstep': cycle=0{DEF}")
178178
return
179179

180180
with self.running():
@@ -190,7 +190,7 @@ def reverse_step(self, count: int = 1) -> None:
190190

191191
def reverse_continue(self) -> None:
192192
if self._cycle == 0:
193-
printf(f"{RED}cannot execute command: cycle=0{DEF}")
193+
printf(f"{RED}cannot execute 'rcontinue': cycle=0{DEF}")
194194
return
195195

196196
with self.running():
@@ -204,7 +204,7 @@ def continue_(self) -> None:
204204
"""Exec debug continue command."""
205205

206206
if self.cpu.control_unit.status == Status.HALTED:
207-
printf(f"{RED}cannot execute command: machine halted{DEF}")
207+
printf(f"{RED}cannot execute 'continue': machine halted{DEF}")
208208
return
209209

210210
with self.running():

0 commit comments

Comments
 (0)