Change debugger init signature.

This commit is contained in:
Stephen Chung
2022-11-25 13:20:03 +08:00
parent 6db9870fb1
commit fbe30b8d0e
6 changed files with 25 additions and 12 deletions

View File

@@ -349,7 +349,9 @@ impl Engine {
#[inline(always)]
pub fn register_debugger(
&mut self,
init: impl Fn(&Self) -> Dynamic + SendSync + 'static,
init: impl Fn(&Self, crate::debugger::Debugger) -> crate::debugger::Debugger
+ SendSync
+ 'static,
callback: impl Fn(
EvalContext,
crate::eval::DebuggerEvent,