Skip to content

Commit 136e9d5

Browse files
committed
Reset and clear graph upon starting the debugger
rcmd always restarts from the start of the program so running microcontroller should be reset at the start of the session.
1 parent 57d0a66 commit 136e9d5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/kotlin/be/ugent/topl/mio/ui/InteractiveDebugger.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ class InteractiveDebugger(
369369
init {
370370
debugger.startReading()
371371
debugger.setSnapshotPolicy(Debugger.SnapshotPolicy.Tracing(listOf(ExecutionState.ProgramCounter)))
372+
debugger.reset()
373+
debugger.graph.currentNode.removeAllChildren()
372374
pause()
373375
}
374376

0 commit comments

Comments
 (0)