diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-10 05:37:58 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-10 05:37:58 +0300 |
commit | 41e2dea4ca1147a989bbf3651506b2082f45cb0f (patch) | |
tree | 91e78aebadc2c53a85d00ca7dfcd85f8d6164479 | |
parent | e9db8404804f2eed07eb0a6190f73ae21e0dc43c (diff) | |
download | micropython-41e2dea4ca1147a989bbf3651506b2082f45cb0f.tar.gz micropython-41e2dea4ca1147a989bbf3651506b2082f45cb0f.zip |
objfun: More debug logging when calling a bytecode function.
-rw-r--r-- | py/objfun.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/py/objfun.c b/py/objfun.c index 0b0df3ba4d..4071432f97 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -211,9 +211,13 @@ arg_error: } STATIC mp_obj_t fun_bc_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_t *args) { - DEBUG_printf("Input: "); + DEBUG_printf("Input n_args: %d, n_kw: %d\n", n_args, n_kw); + DEBUG_printf("Input pos args: "); dump_args(args, n_args); + DEBUG_printf("Input kw args: "); + dump_args(args + n_args, n_kw * 2); mp_obj_fun_bc_t *self = self_in; + DEBUG_printf("Func n_def_args: %d\n", self->n_def_args); const mp_obj_t *kwargs = args + n_args; mp_obj_t *extra_args = self->extra_args + self->n_def_args; |