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

output:Segmentation fault #182

Open
exewen opened this issue Apr 18, 2023 · 10 comments
Open

output:Segmentation fault #182

exewen opened this issue Apr 18, 2023 · 10 comments

Comments

@exewen
Copy link

exewen commented Apr 18, 2023

php -e bin/hyperf.php start
output:Segmentation fault

Docker FROM hyperf/hyperf:8.0-alpine-v3.16-swoole

@huanghantao
Copy link
Member

The latest swoole versions and php 8.1 can use xdebug directly

@aogg
Copy link

aogg commented Jul 24, 2023

如何直接使用
bash-5.1# php -v
PHP 8.1.17 (cli) (built: Mar 20 2023 23:27:00) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.17, Copyright (c) Zend Technologies
with Zend OPcache v8.1.17, Copyright (c), by Zend Technologies
with Yasd v0.3.9-alpha, Our Copyright, by codinghuang

@aogg
Copy link

aogg commented Jul 24, 2023

是需要安装旧的xdebug3吗

@huanghantao
Copy link
Member

是需要安装旧的xdebug3吗

php 8.1 + swoole 5.0.1 版本(最新的swoole版本加了一个配置项来开启是否支持xdebug,所以麻烦些),卸载yasd,只需要安装xdebug最新版本即可用

@lgs888
Copy link

lgs888 commented Sep 10, 2023

是需要安装旧的xdebug3吗

php 8.1 + swoole 5.0.1 版本(最新的swoole版本加了一个配置项来开启是否支持xdebug,所以麻烦些),卸载yasd,只需要安装xdebug最新版本即可用

请问是哪一个配置项开启是否支持xdebug?是需要手动设置开启还是默认已经开启xdebug?找了很久找不到

@aogg
Copy link

aogg commented Sep 11, 2023

是需要安装旧的xdebug3吗

php 8.1 + swoole 5.0.1 版本(最新的swoole版本加了一个配置项来开启是否支持xdebug,所以麻烦些),卸载yasd,只需要安装xdebug最新版本即可用

请问是哪一个配置项开启是否支持xdebug?是需要手动设置开启还是默认已经开启xdebug?找了很久找不到

+1

@huanghantao
Copy link
Member

是需要安装旧的xdebug3吗

php 8.1 + swoole 5.0.1 版本(最新的swoole版本加了一个配置项来开启是否支持xdebug,所以麻烦些),卸载yasd,只需要安装xdebug最新版本即可用

请问是哪一个配置项开启是否支持xdebug?是需要手动设置开启还是默认已经开启xdebug?找了很久找不到

我的锅,记错了swoole版本,是5.0.2,这个版本是不需要开关的,默认开启

@huanghantao
Copy link
Member

是需要安装旧的xdebug3吗

php 8.1 + swoole 5.0.1 版本(最新的swoole版本加了一个配置项来开启是否支持xdebug,所以麻烦些),卸载yasd,只需要安装xdebug最新版本即可用

请问是哪一个配置项开启是否支持xdebug?是需要手动设置开启还是默认已经开启xdebug?找了很久找不到

+1

看上面的回复

@lgs888
Copy link

lgs888 commented Sep 18, 2023 via email

@summerKK
Copy link

请问有xdebug调试swoole5.0.2的教程吗,一直不能远程调试,不知哪里配置不对

------------------ 原始邮件 ------------------ 发件人: "swoole/yasd" @.>; 发送时间: 2023年9月18日(星期一) 晚上10:11 @.>; @.@.>; 主题: Re: [swoole/yasd] output:Segmentation fault (Issue #182) 是需要安装旧的xdebug3吗 php 8.1 + swoole 5.0.1 版本(最新的swoole版本加了一个配置项来开启是否支持xdebug,所以麻烦些),卸载yasd,只需要安装xdebug最新版本即可用 请问是哪一个配置项开启是否支持xdebug?是需要手动设置开启还是默认已经开启xdebug?找了很久找不到 我的锅,记错了swoole版本,是5.0.2,这个版本是不需要开关的,默认开启 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

可以打开一下 xdebug.log =/PATH/xdebug.log, 然后看日志输出一般都能解决问题

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

5 participants