'I can't get xdebug to start, it doesn't stop at breakpoints
I really need your help...
I've been trying to do Xdebug on my VSC for 2 days. I have reinstalled the wamp 20 times and nothing. I have changed the php.ini 100 times and nothing. Nothing in the xdebug.log
Use the xdebugger wizard It shows up fine in the phpinfo
I need your help!!!!!!!!!!!
; XDEBUG Extension
[xdebug]
;xdebug.mode allowed are : off develop coverage debug gcstats profile trace
zend_extension=xdebug
xdebug.remote_enable = 1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9003
xdebug.remote_handler=dbgp
xdebug.remote_autostart = 1
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="C:/wamp64/tmp"
xdebug.show_local_vars=0
xdebug.log=C:/wamp64/tmp/xdebug.log
settings.jaison
{
"php.validate.enable": true,
"php.validate.executablePath": "C:/wamp64/bin/php/php7.4.26/php.exe",
"php.validate.run": "onSave",
"files.autoSave": "onFocusChange",
"window.zoomLevel": 1,
}
"version": "0.2.0",
"configurations": [
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 0,
"runtimeArgs": [
"-dxdebug.start_with_request=yes"
],
"env": {
"XDEBUG_MODE": "debug,develop",
"XDEBUG_CONFIG": "client_port=${port}"
}
},
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
},
{
"name": "Launch Built-in web server",
"type": "php",
"request": "launch",
"runtimeArgs": [
"-dxdebug.mode=debug",
"-dxdebug.start_with_request=yes",
"-S",
"localhost:0"
],
"program": "",
"cwd": "${workspaceRoot}",
"port": 9003,
"serverReadyAction": {
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
}
]
}
Solution 1:[1]
The setting names and values in Xdebug 3 have changed, please read the Upgrade Guide and go through your current settings one by one.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Derick |
