Giter Club home page Giter Club logo

Comments (16)

sy-records avatar sy-records commented on June 5, 2024 2

用xdebug那个端口

from yasd.

euii avatar euii commented on June 5, 2024 2

用xdebug那个端口

确实可以了, 谢谢, 目前测试的结果是这样的.

  1. yasd的端口使用的是xdebug的端口,不是zend_debug的端口,默认9000
  2. 使用php -e 启动的模式下, 监听小电话必须打开, 如果不打开就会报 Connection Failed: Connection refused

from yasd.

xtpv avatar xtpv commented on June 5, 2024

我的是这个报错 Connection Failed: Connection refused

from yasd.

xtpv avatar xtpv commented on June 5, 2024

我的配置和上面的一样但是用的是hyperf的docker镜像,phpstorm监听也开启了,但是一直是Connection refused

from yasd.

huanghantao avatar huanghantao commented on June 5, 2024

from yasd.

tw2066 avatar tw2066 commented on June 5, 2024
root@WIN-RJACNS8A7VM:/mnt/d/WWW/hf20# apt-get install libboost-all-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libboost-all-dev is already the newest version (1.65.1.0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 230 not upgraded.

root@WIN-RJACNS8A7VM:/mnt/d/WWW/hf20# php --ri yasd

yasd

Yasd => enabled
Author => codinghuang <[email protected]>
Version => 0.1.0
Built => Dec 17 2020 19:24:58

Directive => Local Value => Master Value
yasd.breakpoints_file => no value => no value
yasd.debug_mode => remote => remote
yasd.remote_host => 127.0.0.1 => 127.0.0.1
yasd.remote_port => 8000 => 8000
yasd.depth => 1 => 1

root@WIN-RJACNS8A7VM:/mnt/d/WWW/hf20# php -v
PHP 7.2.19 (cli) (built: Jun 23 2019 10:08:57) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Yasd v0.1.0, Our Copyright, by codinghuang

root@WIN-RJACNS8A7VM:/mnt/d/WWW/hf20# php -e bin/hyperf.php start
Segmentation fault (core dumped)

启动不了

from yasd.

xtpv avatar xtpv commented on June 5, 2024

请用tcpdump等抓包工具抓取9000端口的包,看看网络是否通。你可以把抓到的包贴出来

---原始邮件--- 发件人: "xtp2217866847"<[email protected]> 发送时间: 2020年12月17日(周四) 晚上9:19 收件人: "swoole/yasd"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: Re: [swoole/yasd] mac php7.2.33 php -e bin/hyperf.php start 报错 86691 segmentation fault (#33) 我的配置和上面的一样但是用的是hyperf的docker镜像,phpstorm监听也开启了,但是一直是Connection refused — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

我现在已经不会出现Connection refused,但是运行的时候没有任何输出,而且也不报错,不知道是不是我的docker是Alpine的原因,我用的apk add boost-dev来安装boost

from yasd.

huanghantao avatar huanghantao commented on June 5, 2024

请用tcpdump等抓包工具抓取9000端口的包,看看网络是否通。你可以把抓到的包贴出来

---原始邮件--- 发件人: "xtp2217866847"<[email protected]> 发送时间: 2020年12月17日(周四) 晚上9:19 收件人: "swoole/yasd"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: Re: [swoole/yasd] mac php7.2.33 php -e bin/hyperf.php start 报错 86691 segmentation fault (#33) 我的配置和上面的一样但是用的是hyperf的docker镜像,phpstorm监听也开启了,但是一直是Connection refused — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

我现在已经不会出现Connection refused,但是运行的时候没有任何输出,而且也不报错,不知道是不是我的docker是Alpine的原因,我用的apk add boost-dev来安装boost

容器里面目前还未测试到,我后续修复一下。

from yasd.

xtpv avatar xtpv commented on June 5, 2024

请用tcpdump等抓包工具抓取9000端口的包,看看网络是否通。你可以把抓到的包贴出来

---原始邮件--- 发件人: "xtp2217866847"<[email protected]> 发送时间: 2020年12月17日(周四) 晚上9:19 收件人: "swoole/yasd"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: Re: [swoole/yasd] mac php7.2.33 php -e bin/hyperf.php start 报错 86691 segmentation fault (#33) 我的配置和上面的一样但是用的是hyperf的docker镜像,phpstorm监听也开启了,但是一直是Connection refused — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

我现在已经不会出现Connection refused,但是运行的时候没有任何输出,而且也不报错,不知道是不是我的docker是Alpine的原因,我用的apk add boost-dev来安装boost

容器里面目前还未测试到,我后续修复一下。

我用phpstorm的时候,IDE里面需要设置 ZendDebugger 的Debug port设置成ini中remote_port端口一致, remote_host要设置宿主机的ip才能通信,希望到时候文档能详细一些方便大家使用

from yasd.

huanghantao avatar huanghantao commented on June 5, 2024

请用tcpdump等抓包工具抓取9000端口的包,看看网络是否通。你可以把抓到的包贴出来

---原始邮件--- 发件人: "xtp2217866847"<[email protected]> 发送时间: 2020年12月17日(周四) 晚上9:19 收件人: "swoole/yasd"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: Re: [swoole/yasd] mac php7.2.33 php -e bin/hyperf.php start 报错 86691 segmentation fault (#33) 我的配置和上面的一样但是用的是hyperf的docker镜像,phpstorm监听也开启了,但是一直是Connection refused — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

我现在已经不会出现Connection refused,但是运行的时候没有任何输出,而且也不报错,不知道是不是我的docker是Alpine的原因,我用的apk add boost-dev来安装boost

容器里面目前还未测试到,我后续修复一下。

我用phpstorm的时候,IDE里面需要设置 ZendDebugger 的Debug port设置成ini中remote_port端口一致, remote_host要设置宿主机的ip才能通信,希望到时候文档能详细一些方便大家使用

是的,要ip port一致。感谢你的建议,我们会慢慢的去完善文档。

from yasd.

cpj555 avatar cpj555 commented on June 5, 2024

本地mac运行遇到类似的问题,不知道是不是配置的不对 视频里面phpstrom那部分没有讲怎么配置
php -v
PHP 7.4.12 (cli) (built: Oct 29 2020 18:37:21) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Yasd v0.1.0, Our Copyright, by codinghuang
php --ri yasd

yasd

Yasd => enabled
Author => codinghuang [email protected]
Version => 0.1.0
Built => Dec 18 2020 16:27:29

Directive => Local Value => Master Value
yasd.breakpoints_file => no value => no value
yasd.debug_mode => remote => remote
yasd.remote_host => 127.0.0.1 => 127.0.0.1
yasd.remote_port => 8000 => 8000
yasd.depth => 1 => 1

image
image
image

from yasd.

euii avatar euii commented on June 5, 2024
--- ~ » php -v
PHP 7.4.13 (cli) (built: Dec 18 2020 15:39:09) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies
    with Yasd v0.1.0, Our Copyright, by codinghuang

--- ~ » php --ri yasd

yasd

Yasd => enabled
Author => codinghuang <[email protected]>
Version => 0.1.0
Built => Dec 18 2020 17:22:09

Directive => Local Value => Master Value
yasd.breakpoints_file => .breakpoints_file.log => .breakpoints_file.log
yasd.debug_mode => remote => remote
yasd.remote_host => 127.0.0.1 => 127.0.0.1
yasd.remote_port => 8000 => 8000
yasd.depth => 1 => 1

--- PhpstormProjects‹master* M› » php -e bin/hyperf.php start                              
Connection Failed: Connection refused

image

image

from yasd.

euii avatar euii commented on June 5, 2024
--- ~ » php -v
PHP 7.4.13 (cli) (built: Dec 18 2020 15:39:09) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies
    with Yasd v0.1.0, Our Copyright, by codinghuang

--- ~ » php --ri yasd

yasd

Yasd => enabled
Author => codinghuang <[email protected]>
Version => 0.1.0
Built => Dec 18 2020 17:22:09

Directive => Local Value => Master Value
yasd.breakpoints_file => .breakpoints_file.log => .breakpoints_file.log
yasd.debug_mode => remote => remote
yasd.remote_host => 127.0.0.1 => 127.0.0.1
yasd.remote_port => 8000 => 8000
yasd.depth => 1 => 1

--- PhpstormProjects‹master* M› » php -e bin/hyperf.php start                              
Connection Failed: Connection refused

image

image

相同的问题, 用php -e 启动以后出现 Connection Failed: Connection refused

from yasd.

xtpv avatar xtpv commented on June 5, 2024

yasd.breakpoints_file

ide 不需要设置这个吧yasd.breakpoints_file
电话虫监听记得打开,再看本地的端口有没有启用

from yasd.

cpj555 avatar cpj555 commented on June 5, 2024

用xdebug那个端口

还是报这个错
Uploading image.png…

from yasd.

huanghantao avatar huanghantao commented on June 5, 2024

v0.2.6版本已经修复。

from yasd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.