Skip to content

Commit

Permalink
Merge branch 'master' into kh-lsp-crash-when-no-workspace#4143
Browse files Browse the repository at this point in the history
  • Loading branch information
kobyhallx authored Jan 24, 2024
2 parents b4430b0 + 21f91b6 commit 35361db
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tooling/debugger/src/repl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ impl<'a, B: BlackBoxFunctionSolver> ReplDebugger<'a, B> {
Some(location) => {
match location {
OpcodeLocation::Acir(ip) => {
println!("At opcode {}: {}", ip, opcodes[ip])
// Default Brillig display is too bloated for this context,
// so we limit it to denoting it's the start of a Brillig
// block. The user can still use the `opcodes` command to
// take a look at the whole block.
let opcode_summary = match opcodes[ip] {
Opcode::Brillig(..) => "BRILLIG: ...".into(),
_ => format!("{}", opcodes[ip]),
};
println!("At opcode {}: {}", ip, opcode_summary);
}
OpcodeLocation::Brillig { acir_index, brillig_index } => {
let Opcode::Brillig(ref brillig) = opcodes[acir_index] else {
Expand Down

0 comments on commit 35361db

Please sign in to comment.