Skip to content

Commit c32fec4

Browse files
committed
sys/settrace: Add frame.f_locals placeholder.
Used in pdb.py debugging support.
1 parent 1c58bbb commit c32fec4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

py/profile.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ STATIC void frame_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
279279
case MP_QSTR_f_trace:
280280
dest[0] = o->trace_obj;
281281
break;
282+
case MP_QSTR_f_locals:
283+
dest[0] = MP_OBJ_FROM_PTR(o->code->dict_locals);
284+
break;
282285
}
283286
}
284287

0 commit comments

Comments
 (0)