Comments (16)
用xdebug那个端口
from yasd.
用xdebug那个端口
确实可以了, 谢谢, 目前测试的结果是这样的.
- yasd的端口使用的是xdebug的端口,不是zend_debug的端口,默认9000
- 使用php -e 启动的模式下, 监听小电话必须打开, 如果不打开就会报 Connection Failed: Connection refused
from yasd.
我的是这个报错 Connection Failed: Connection refused
from yasd.
我的配置和上面的一样但是用的是hyperf的docker镜像,phpstorm监听也开启了,但是一直是Connection refused
from yasd.
from yasd.
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.
请用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.
请用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.
请用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.
请用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.
本地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
from yasd.
--- ~ » 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
from yasd.
--- ~ » 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
相同的问题, 用php -e 启动以后出现 Connection Failed: Connection refused
from yasd.
yasd.breakpoints_file
ide 不需要设置这个吧yasd.breakpoints_file
电话虫监听记得打开,再看本地的端口有没有启用
from yasd.
用xdebug那个端口
from yasd.
v0.2.6
版本已经修复。
from yasd.
Related Issues (20)
- View private properties of parent class will crashed HOT 2
- macos(M1X) + yasd + hyperf debug报错 HOT 5
- Undefined constant "request" HOT 3
- 请问下怎么解决单元测试覆盖率问题 HOT 5
- "php -e" debug with VsCode and Docker Alpine error "Segmentation fault" HOT 1
- Can not check the value of static variables in a class HOT 1
- M2 编译失败(M2 Compilation fails) HOT 9
- 能够进入,但是执行下一步,就会报这个错误。php代码没问题。 HOT 15
- Undefined constant "this" in yasd://debug-eval:1 HOT 5
- 大佬 这个报错啥原因呢 HOT 1
- It's not possible to compile in the php:8.1-cli-alpine3.17 HOT 1
- centos7 php7.2下编译失败
- output:Segmentation fault HOT 10
- There is an error in the compilation(make) HOT 3
- mark error ( errors generated. make: *** [src/remote_debugger.lo] Error 1 ) HOT 2
- make test 失败率90% ,php -e 报Segmentation fault 安装完后不能正常使用。 HOT 2
- centos7编译安装成功,配置文件也已加上扩展,但是php --ri yasd没有相关信息 HOT 1
- 我用sdebug时可以将hyperf断点停在vendor的Server.php中的sortServers函数里,但是使用yasd不行,是我哪里配置不对吗? HOT 2
- centos7系统下php8.2.4 make 报错 HOT 1
- 'zend_string *' (aka '_zend_string *') from 'char *' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yasd.