Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tooling/debugger/src/dap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ impl<'a, R: Read, W: Write, B: BlackBoxFunctionSolver> DapSession<'a, R, W, B> {
}

pub fn run_loop(&mut self) -> Result<(), ServerError> {
self.running = true;
self.running = self.context.get_current_opcode_location().is_some();

if matches!(self.context.get_current_source_location(), None) {
if self.running && matches!(self.context.get_current_source_location(), None) {
// TODO: remove this? This is to ensure that the tool has a proper
// source location to show when first starting the debugger, but
// maybe the default behavior should be to start executing until the
Expand Down
15 changes: 7 additions & 8 deletions tooling/debugger/src/repl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,13 @@ impl<'a, B: BlackBoxFunctionSolver> ReplDebugger<'a, B> {
initial_witness.clone(),
foreign_call_executor,
);
Self {
context,
blackbox_solver,
circuit,
debug_artifact,
initial_witness,
last_result: DebugCommandResult::Ok,
}
let last_result = if context.get_current_opcode_location().is_none() {
// handle circuit with no opcodes
DebugCommandResult::Done
} else {
DebugCommandResult::Ok
};
Self { context, blackbox_solver, circuit, debug_artifact, initial_witness, last_result }
}

pub fn show_current_vm_status(&self) {
Expand Down