-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange behavior of breakpoints on PHP 8.1.6, Xdebug 3.2.0 and Swoole 5.0.2 #4969
Comments
@MadridianFox same here - after changing a breakpoint, I need to restart the container. |
I don't think this is related to Swoole; it seems to be the issue of Xdebug itself. When you run a plain PHP script and try to add a breakpoint while it's running, it doesn't work either. I've reported it on XDebug side to see if I'm correct: https://bugs.xdebug.org/view.php?id=2161 |
AFAIK you need to set breakpoints before running the script or during a break on another breakpoint. This works well for my setup which seems to be the same as yours |
When you add a breakpoint in an IDE, it sends a breakpoint request to xdebug. The added breakpoint is only effective if xdebug can process the breakpoint request. |
Please answer these questions before submitting your issue.
Trying to use xdebug for step debugging.
Steps to reproduce:
I expect it to work like fpm - I can put a breakpoint anywhere at any time, refresh the page and the app will stop.
When i make a breakpoint in controller and open a page in browser, it randomly stops or not.
Restart of the application randomly changes the situation - breakpoint may become work or broken.
php --ri swoole
)?Swoole 5.0.2
Installed via compilation commit 6809ae4
uname -a
&php -v
&gcc -v
) ?PHP docker image: php:8.1.6-fpm-alpine3.16
Kernel: 5.4.0-137-generic #154-Ubuntu SMP Thu Jan 5 17:03:22 UTC 2023 x86_64 Linux
Dockerfile
The text was updated successfully, but these errors were encountered: