Retain the previous locals output format
@@ -116,7 +116,11 @@ impl fmt::Debug for Frame {
.join("");
let local_str = match self.locals.borrow().kind {
PyObjectKind::Scope { ref scope } => match scope.locals.borrow().kind {
- PyObjectKind::Dict { ref elements } => format!(" {:?}", elements),
+ PyObjectKind::Dict { ref elements } => elements
+ .iter()
+ .map(|elem| format!("\n {} = {}", elem.0, elem.1.borrow_mut().str()))
+ .collect::<Vec<_>>()
+ .join(""),
ref unexpected => panic!(
"locals unexpectedly not wrapping a dict! instead: {:?}",
unexpected
