Add support for PDB debugging module
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?
Improve sys.settrace to help support debugpy / pdb debugging
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_traceholds a python obj on the frame, used inbdbto track active trace function for call stack.