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

Is it possible to debug completion logic (any Completor) in IDE? #209

Open
Krasnyanskiy opened this issue Aug 20, 2015 · 2 comments
Open

Comments

@Krasnyanskiy
Copy link

I use IntelliJ IDEA on Mac. When I run my simple JLine app in debug mode with all breakpoints in complete method (e.g. in StringsCompleter), IDEA does not respond to breakpoints even if they've been reached.

I was trying to set various flags (-Djline.terminal=jline.UnsupportedTerminal and some others), but it didn't help. When you have no possibility to debug your code it's very inconvenient.

So, are there any plans to add somehow the support of debugging completion code in IDE, to make breakpoints work? It can be very useful for all developers.

Thanks.

@westonal
Copy link

I understand why the same issue occurs on windows, the WindowsTerminal class is attempting to hook in to the command window with various dll calls that are obviously unsuitable for the kind of terminal IDEA is using. I imagine the issue is the same kind of problem in any other OS.

I'm going to try and contact people who write IDEA and also look at the source for it here: https://github.com/JetBrains/intellij-community to try to work out what kind of terminal and how we can hook into it with a different Terminal implementation.

@gnodet
Copy link
Member

gnodet commented Jul 4, 2018

If you're talking about the Intellij debugging console, it's not even a real terminal, so there's no way to have tab completion on any OS at all.

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