desktop: Also include avm2 stacktrace in panic report
This commit is contained in:
parent
3c8f5b41cc
commit
2189d19324
|
@ -920,6 +920,13 @@ fn panic_hook(info: &PanicInfo) {
|
||||||
extra_info.push(format!("SWF: {swf_name}"));
|
extra_info.push(format!("SWF: {swf_name}"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
CALLSTACK.with(|callstack| {
|
||||||
|
if let Some(callstack) = &*callstack.borrow() {
|
||||||
|
callstack.avm2(|callstack| {
|
||||||
|
extra_info.push(format!("AVM2 Callstack:\n```{callstack}\n```"));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
if !extra_info.is_empty() {
|
if !extra_info.is_empty() {
|
||||||
params.push(("extra_info", extra_info.join("\n")));
|
params.push(("extra_info", extra_info.join("\n")));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue