3,582 questions
Tooling
1
vote
1
replies
59
views
Debugging PHP with the VSCode buildin browser (set XDEBUG_SESSION)
Just discoverd the build in browser in VSCode. It would be awesome to debug PHP code as well. But how to set the XDEBUG_SESSION cookie in the build in browser sessions?
My compose.yaml:
name: ${...
3
votes
1
answer
172
views
Why do I need `zend_extension = xdebug`?
My system is:
Windows 11 Pro
Xampp
PHP 8.2.12
xdebug v3.5.1
I define the binary in my php.ini as
zend_extension = "D:\websites\php\ext\php_xdebug-3.5.1-8.2-ts-vs16-x86_64.dll"
Everything ...
1
vote
0
answers
128
views
XDebug in Docker Over WSL
I am trying to achieve what I'd hoped would be a fairly standard setup:
PhpStorm running on Windows, opening a project on WSL2
Docker CE running in WSL2, with its Networking Mode set to Mirrored
...
0
votes
1
answer
98
views
No breakpoints when using Xdebug in VSCode to a Apache server running in VirtualBox
Currently trying to get breakpoints working in VSCode to a PHP server running in VirtualBox.
My VS Code launch is as follows:
{
"name": "Listen for Xdebug",
"type&...
0
votes
1
answer
84
views
Dockerized Symfony app debug in VSCode - 9003 port occupied
Symfony app as container in docker-compose.yaml:
users:
build:
context: .
dockerfile: ./docker/Dockerfile
container_name: users
restart: unless-stopped
working_dir: /var/...
0
votes
1
answer
79
views
Xdebug: [Config] WARN: Can't create control Named Pipe (0x0)
I use WAMP 3.4.0 on Win11 and try to debug a local web page. Unfortunately the "break at first line" and any other break point does not work. With xdebug.log_level=7 I only a couple of those ...
0
votes
1
answer
78
views
Laravel Sail + Xdebug
I have Laravel Sail installed in WSL, and I'm trying to debug the application using Xdebug. This only works if I enter the WSL IP address directly into the browser (http://172.17.170.44:8000). If I ...
1
vote
0
answers
137
views
How to connect Xdebug to VSCode
I'm trying to use Xdebug in VSCode. It seems Xdebug is running but I can't get VSCode to hit on the breakpoints I set. In the logfile (see below) it shows some kind of mismatch between files in which ...
0
votes
0
answers
89
views
Symfony app crashes during Xdebug session at EntityManager proxy, but manual evaluation works
I'm experiencing a strange debugging issue with my Symfony web application where Xdebug causes a crash, but manually evaluating the same code works fine.
Problem Description
When debugging my Symfony ...
0
votes
2
answers
126
views
Unable to debug my website on macOS with PhpStorm
My stack is
nginx + php php-fpm + xDebug + PHPStorm
I have put at the very beginning of my index.php
echo "foobar";
exit;
and placed a breakpoint on the very first line.
If I run the script ...
0
votes
0
answers
96
views
XDebug & Netbeans - Works on some projects but not on others
Wondering if anyone can explain this. I have Netbeans 23, using XDebug 3. I find that it works on some of my projects but not on others. What I mean by that is when you hit "Run" (F5) on ...
0
votes
0
answers
92
views
MAMP & Xdebug Troubleshooting
I had Xdebug working on my MAMP Free installation but decided to purchase the full software. I saw in the menu unlike the free version I could enable Xdebug, so I did so, however the connection isn't ...
0
votes
1
answer
114
views
Getting "ERR_CONNECTION_RESET" error with specific xdebug versions
While updating my PHP dev environment by updating PHP and Xdebug versions, I encountered this error "ERR_CONNECTION_RESET" while debugging.
Context: debugging a PrestaShop project.
Old ...
0
votes
0
answers
116
views
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port)
I'm using Xdebug v3.4.0 (with PHP 8.3.9).
I get this error for every request.
I tried other Xdebug versions but still got the issue.
Here my php.ini :
[XDebug]
zend_extension = xdebug
xdebug.mode=...
0
votes
0
answers
76
views
Examining variables in Sublime Text 3 with Xdebug
I've got the Xdebug plugin working with Sublime Text 3 (as well as the SFTP plugin), and I can successfully set breakpoints and have the Xdebug Context pane populate with every variable in my phpBB ...