On Sat, 25 Mar 2017 at 05:58 Serhiy Storchaka <storch...@gmail.com> wrote:

> On 25.03.17 12:04, Victor Stinner wrote:
> >
> https://blog.jetbrains.com/pycharm/2017/03/inside-the-debugger-interview-with-elizaveta-shashkova/
> >
> > "What changed in Python 3.6 to allow this?
> >
> > The new frame evaluation API was introduced to CPython in PEP 523 and it
> > allows to specify a per-interpreter function pointer to handle the
> > evaluation of frames."
> >
> > Nice!
>
> Awesome! Any chance that pdb can utilize similar technique? Or this
> doesn't make sense for pdb?
>

I guess it's possible. It probably depends on how you're using the
debugger. It sounds like PyCharm is injecting bytecode for specified
 breakpoints and so I suspect the speed is only there when you press
 "debug" and are not stepping through line-by-line. Getting gdb to have the
same level of sophistication might not be too bad as long as you keep the
hook simple and you're okay injected new bytecode just before a frame
begins execution.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to