R
R
RaMzz2020-05-21 22:11:45
PHP
RaMzz, 2020-05-21 22:11:45

How to set up Vs Code for PHP and xampp?

guys help the second day I'm fighting with vs code for php
win 10
php 7.4++
xxamp
wanted to configure for openserver but I found info only for xxamp, at least to configure it for it ... I
took the settings from this site itnan.ru/post.php?c =1&p=310708
php.ini


[XDebug]
zend_extension = C:\xampp\php\ext\php_xdebug-2.9.5-7.4-vc15-nts.dll
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.2
xdebug.remote_port=9000
xdebug.remote_autostart=on
xdebug .remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
xdebug.remote_log ="C:\xampp\tmp\xdebug.log"


launch.json

{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
port:9000
}
]
}


https://www.youtube.com/watch?v=rv9dD5X_gs0

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question