i have tried many ways to solve this problem but nothing works here is my php.ini file code
[XDebug]
xdebug.mode=debug
xdebug.remote_enable=on
xdebug.start_with_request=yes
xdebug.client_host=host.docker.internal
xdebug.discover_client_host = true
zend_extension = "C:xamppphpextphp_xdebug.dll"
and i have also tried
xdebug.profiler_enable=on
but both have this problem when i run php -v in CMD
Xdebug: [Config] The setting ‘xdebug.remote_enable’ has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_enable (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
here is my launch.json file
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Built-in web server",
"type": "php",
"request": "launch",
"runtimeArgs": [
"-dxdebug.mode=debug",
"-dxdebug.start_with_request=yes",
"-S",
"localhost:0"
],
"program": "C:\xampp\htdocs\todoxampp\todo_db.php",
"cwd": "${workspaceRoot}",
"port": 9003,
"serverReadyAction": {
"pattern": "Development Server \(http://localhost:([0-9]+)\) started",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
},
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003
},
{
"name": "Listen for Xdebug 2 (Legacy)",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script with Xdebug 2 (Legacy)",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 0,
"runtimeArgs": [
"-dxdebug.remote_enable=yes",
"-dxdebug.remote_autostart=yes"
],
"env": {
"XDEBUG_CONFIG": "remote_port=${port}"
}
},
{
"name": "Xdebug Cloud",
"type": "php",
"request": "launch",
"xdebugCloudToken": ""
},
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
],
"pathMappings": {
"/var/www/html": "${workspaceFolder}/www",
"/app": "${workspaceFolder}/app"
}
}
i also upgraded my php and apache version i am using XAMPP
Thank you in advance!
i followed the step by step instructions of installing Xdebug and watched Youtube tutorials but nothing seems to work my variable, watch and call stack are empty and code does not debug