pytest-el icon indicating copy to clipboard operation
pytest-el copied to clipboard

ipdb support?

Open jluttine opened this issue 9 years ago • 3 comments

Is it possible to use ipdb debugger with pytest using this emacs package?

jluttine avatar Oct 13 '16 14:10 jluttine

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 avatar Oct 13 '16 15:10 jluttine

@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!

ionrock avatar Oct 14 '16 15:10 ionrock

@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.

sivakov512 avatar Sep 06 '17 06:09 sivakov512