Skip to content

Commit 41e2dea

Browse files
committed
objfun: More debug logging when calling a bytecode function.
1 parent e9db840 commit 41e2dea

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

py/objfun.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,13 @@ bool mp_obj_fun_prepare_simple_args(mp_obj_t self_in, uint n_args, uint n_kw, co
211211
}
212212

213213
STATIC mp_obj_t fun_bc_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_t *args) {
214-
DEBUG_printf("Input: ");
214+
DEBUG_printf("Input n_args: %d, n_kw: %d\n", n_args, n_kw);
215+
DEBUG_printf("Input pos args: ");
215216
dump_args(args, n_args);
217+
DEBUG_printf("Input kw args: ");
218+
dump_args(args + n_args, n_kw * 2);
216219
mp_obj_fun_bc_t *self = self_in;
220+
DEBUG_printf("Func n_def_args: %d\n", self->n_def_args);
217221

218222
const mp_obj_t *kwargs = args + n_args;
219223
mp_obj_t *extra_args = self->extra_args + self->n_def_args;

0 commit comments

Comments
 (0)