Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

我用sdebug时可以将hyperf断点停在vendor的Server.php中的sortServers函数里,但是使用yasd不行,是我哪里配置不对吗? #187

@wangsen2020

Description

@wangsen2020

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provides a simple script and debug step to reproduce the problem.

phpstorm2022版本,按照文档配置了远程调试,配置信息如下:
zend_extension=yasd
yasd.debug_mode=remote
yasd.depth=3
yasd.remote_host=192.168.0.106
yasd.remote_port=9000

hyperf使用的是2.0框架,php是7.2版本,centos系统,phpstorm使用的远程php解释器
composer create-project hyperf/hyperf-skeleton=2.0 hyperf-server

配置完成后,IndexController是能够监听到的,但是
image
打好断点,使用debug调试时,发过来的信息不能停在这里,我使用地ide自带的php脚本调试器配置
image

但是使用sdebug,则点击debug时可以停在这里,这让我很费解,该问题以前也有,但是我看没人提过

  1. What did you expect to see?

我期待yasd也能断点停在这里,让我能够很好的观察hyperf的启动过程调用栈

  1. What did you see instead?

  2. What is your machine environment used (show your uname -a & php -v & gcc -v) ?
    环境应该都装好了,只是vendor中的代码不能断点调试
    image
    image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions