I created this builtin:
debugger := starlark.NewBuiltin("debugger", func(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) {
repl.REPL(thread, b.predeclared)
return nil, nil
})
But, unsurprisingly, when it is run, the various local variables or declared global variables are not available in the interactive session.
Is implementing this kind of interactive debugger feasible with the current lib implementation?
Thanks!