← index #3009PR #8767
Related · high · value 3.234
QUERY · ISSUE

Add support for PDB debugging module

openby slush0opened 2017-04-09updated 2024-08-02
rfc

Hello,

I'd like to see support for debugger in Micropython. I know it has been discussed before, but I cannot find any conclusion on that topic from Micropython team. Is even possible to implement PDB support in current Micropython codebase?

If so, what is needed to make it happen? Do the project need more manpower for this task or is it matter of priority or money?

CANDIDATE · PULL REQUEST

Improve sys.settrace to help support debugpy / pdb debugging

openby andrewleechopened 2022-06-16updated 2026-03-26
py-core

Companion support for https://github.com/micropython/micropython-lib/pull/1022 & https://github.com/micropython/micropython-lib/pull/499

Requires micropython be built with MICROPY_PY_SYS_SETTRACE eg. unix standard variant

Includes:

  • sys/settrace: Add sys._getframe() function.
    Refer to https://docs.python.org/3/library/sys.html#sys._getframe

  • sys/settrace: Add frame.f_trace object support.
    f_trace holds a python obj on the frame, used in bdb to track active trace function for call stack.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied