Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipdb support? #19

Open
jluttine opened this issue Oct 13, 2016 · 3 comments
Open

ipdb support? #19

jluttine opened this issue Oct 13, 2016 · 3 comments

Comments

@jluttine
Copy link
Contributor

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

@jluttine
Copy link
Contributor Author

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!

@ionrock
Copy link
Owner

ionrock commented Oct 14, 2016

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

@sivakov512
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants