pytest-el
pytest-el copied to clipboard
ipdb support?
Is it possible to use ipdb debugger with pytest using this emacs package?
I installed pdb++ and got that running but some features like tab-completion do not work. Is that related to this package or Emacs GUD, do you know? Or do you happen to have any insight how to make it work? Thanks anyway!
@jluttine I suspect that it might be tricky to get working b/c the buffer created is a compilation buffer, or in the case of pdb, it is a comint buffer with compilation highlighting. Comint buffers, I think, by default don't send all key presses to the underlying process, hence no tab complete.
That is just my theory though! It might be easy to configure the comint buffer to include completions or to configure tab complete to be "on". If you find a good way of making this work feel free to submit a PR!
@jluttine you can run pytest with ipdb like this
(setq pytest-cmd-flags "--pdbcls=IPython.terminal.debugger:Pdb")
In this case ipdbwill be used for debugging. I tried it, it works, bit without autocompletion.