Update vim/vim.md

This commit is contained in:
Ste Vaidis 2023-11-17 11:48:46 +02:00
parent 175b3bf6ac
commit 8cbdc3fef3

View File

@ -57,54 +57,6 @@ wget https://git.vaidis.eu/stevaidis/dev/raw/branch/main/vim/polish.lua
nvim
```
## XDebug
### Install
```sh
dnf install php82-php-pecl-xdebug3
```
### Configure
`/etc/php.ini`
```ini
[XDebug]
zend_extension=/opt/remi/php82/root/usr/lib64/php/modules/xdebug.so
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.mode=debug,develop
xdebug.client_host=localhost
xdebug.client_port=9000
xdebug.idekey="xdebug"
xdebug.log=/tmp/xdebug.log
xdebug.start_with_request=trigger
```
### Adapter
```sh
cd ~
git clone https://github.com/xdebug/vscode-php-debug.git
cd vscode-php-debug
npm install && npm run build
```
Debug adapter nvim plugin
`:MasonInstall php-debug-adapter`
Debug chrome plugin
(https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc)
to trigger debugger send the cookie `XDEBUG_SESSION=XDEBUG_ECLIPSE; Path=/; Expires=Sat, 27 Jul 2024 08:17:10 GMT;`
## LSP server
(https://intelephense.com)