Skip to content
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

Yasd don't reload breakpoints with Swoole hot reloading #166

Closed
dmitryuk opened this issue Mar 15, 2022 · 1 comment
Closed

Yasd don't reload breakpoints with Swoole hot reloading #166

dmitryuk opened this issue Mar 15, 2022 · 1 comment

Comments

@dmitryuk
Copy link
Contributor

Swoole supports hot code reloading by using the linux command

kill -USR1 MASTER_PID

(MASTER_PID in my case is 1 )
Yasd don't reload breakpoints after worker restarted.

Steps to reproduce

  1. Run swoole server
  2. Add new breakpoint to any line of code
  3. Run command kill -USR1 MASTER_PID
  4. Workers restarted successfully
  5. Trigger the code with request

As the result Yasd don't stop on new breakpoint.

@dmitryuk dmitryuk changed the title Swoole hot reloading don't reload breakpoints Swoole don't reload breakpoints with hot reloading Mar 15, 2022
@dmitryuk dmitryuk changed the title Swoole don't reload breakpoints with hot reloading Yasd don't reload breakpoints with hot reloading Mar 15, 2022
@dmitryuk dmitryuk changed the title Yasd don't reload breakpoints with hot reloading Yasd don't reload breakpoints with Swoole hot reloading Mar 15, 2022
@huanghantao
Copy link
Member

Can consider to use swoole https://github.com/swoole/swoole-src/tree/support-xdebug

You can use xdebug directly, as long as the PHP version is 8.1 or greater

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants