Prettified the debug output

This commit is contained in:
vegowotenks 2024-11-03 13:43:09 +01:00
parent 53929b5dfe
commit 4c43e9290f
2 changed files with 10 additions and 2 deletions

View file

@ -669,7 +669,7 @@ impl JVM {
//println!("{} locals: {:?}", " ".repeat(frame_index), frame.locals);
println!("{} stack: {:?}", " ".repeat(frame_index), frame.operand_stack);
println!("{}{:25}.{:15}:{:<10}{instruction:?}\n", " ".repeat(frame_index), class.get_classname().unwrap(), method.name, frame.instruction_pointer);
println!("{}{}.{}:{:<10}{instruction:?}\n", " ".repeat(frame_index), class.get_classname().unwrap(), method.name, frame.instruction_pointer);
match instruction {