Update vim/vim.md
This commit is contained in:
parent
175b3bf6ac
commit
8cbdc3fef3
48
vim/vim.md
48
vim/vim.md
@ -57,54 +57,6 @@ wget https://git.vaidis.eu/stevaidis/dev/raw/branch/main/vim/polish.lua
|
|||||||
nvim
|
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
|
## LSP server
|
||||||
|
|
||||||
(https://intelephense.com)
|
(https://intelephense.com)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user