-
Notifications
You must be signed in to change notification settings - Fork 158
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
Hangs php until I press a key #422
Comments
I noticed the same issue while working with a PHP code base. You must refocus on vim before the debugger will allow the PHP script to continue execution. In my case, I was having to press Thus far I've located the logic which should check to see if there is an active connection ready for debugging. However, I need to research the As an immediate next step I think we should create a simple PHP script and plugin config which reliably reproduces this issue. |
:) that looks like the problem all right :) Looks like it's checking for a debuggable process on keypress/focus/etc. Instead, in versions that support it (8+ I think) I'd like vdebug instead to call job_start(... {'out_cb': ...}) or some such so it can be notified immediately when a debugger is requested. |
I can't reproduce this issue consistently, I only have this occasionally which made me not really look into it. |
Do you run vim in the terminal? It's a little easier there, because it doesn't have the Also, inconsistency is probably caused by the As a temporary workaround you could |
I also have to always input something (even only a |
@JasonWoof Yes I always run vim in the terminal and I very occasionaly have this issue. I will look into it if I can find something. I shortly looked at the channel stuff but have to figure out if this is possible directly in python. |
I've been experiencing this issue everytime I use vdebug (currently on deepin-terminal, but I'll test some others later) 🤔 @BlackIkeEagle Please, what terminal are you using? |
I have the same issue, not occasionally though, but every time. |
@ltgouvea I'm mostly using termite, but also konsole (kde) and gnome-terminal, there is a need for a solution to trigger the debugging interface once a connection is there, but I did not take the proper time to look into it |
I think this bug is less evident/reproducible on graphical instances of Vim because vdebug checks if it should start the debugger interface when the FocusGained event fires. Terminals don't notify vim about focus, hence needing to press a key in non-graphical vim instances. |
I'm experiencing this nearly 100% of my debug sessions. Currently using gnome-terminal. |
I refresh the page or run the ajax call or whatever's runs php with xdebug, then nothing happens (php doesn't run, vdebug interface doesn't pop up)
I want vdebug to run at this point.
Workaround: I press an arrow key then vdebug starts up.
Request: I'd like vdebug to run automatically when php/xdebug connects, and not wait for me to touch the keyboard. Maybe this was not possible when vdebug was originally written, but surely it is possible with vim 8.
The text was updated successfully, but these errors were encountered: