-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Adapter works only with stopOnEntry #521
Comments
Before I dig in here, do I understand correctly you are not using this adapter in VSCode but in nvim? I was not aware of this and this has some implications on how I develop things. Thanks. |
Yes as it is an adapter protocol can be used in vim with https://puremourning.github.io/vimspector-web/ or in neovim with https://github.com/mfussenegger/nvim-dap Those plugins supports a lot of vscode adapters by default. Anyway my neovim settings are there github.com/mte90/dotfiles I can hack in the code if needed so just let me know how I can help :-) |
Great to hear, alto this introduces complexity for me :) What I'm currently working on is #517 a way to initiate multiple DAP sessions, one for each DBGp connections. The way I do this is that I start one DAP were I only listen for connections, then short-circuit back to VSCode extension to start a new DAP session with existing socket connection details... Check that PR for more details. I'm working on a compatibility mode where the classic (thread) and the new approach would continue to work... I'll check out your logs and try to setup nvim on my environment. |
I will try those but maybe you can turn this things with config so with vscode don't create issue and for others you can turn off etc. |
Hello @Mte90 ! I spent a few days trying to setup neovim and alto frustrating in the end I managed to get a working environment. Because I have a very strange setup (was running nvim and php in WSL/linux, but the DAP adapter on windows) I had some path issues, but in the end breakpoints worked. I then went back to your logs and saw something. Your config says:
This would mean, that your php process would see the filed under /var/www/VVV/www. However looking at the Xdebug log I see:
The DAP send this breakpoint to Xdebug: Seems to me the config should be:
|
I can confirm that works, I am using locally symlinks to that folder... |
PHP version: 7.3
Xdebug version: 3.0.3
Adapter version: 1.14.9
Your launch.json:
Xdebug php.ini config:
Xdebug logfile (from setting
xdebug.remote_log
in php.ini):Adapter logfile (from setting
"log": true
in launch.json):Code snippet to reproduce:
I am using https://github.com/Varying-Vagrant-Vagrants/vvv with the adapter on nvim.
If I turn
stopOnEntry:true
neovim detect and show the first file (index.php
) of WordPress, instead if I turn off that function nothing it is happening as you can see from the log. My idea is that the request is everything ok but somehow the adapter send also the stop command after so it is automatically closed.Instead if I use my client https://github.com/Mte90/pugdebug everything works also with that option turned off (break on first line). A thing that I noticed that in the page elaboration the request is happening twice.
The text was updated successfully, but these errors were encountered: