Comments (15)
跟你一样的问题。困扰很久了。各种环境都试了,都会崩掉,:( ,我是phpsotrm+yasd+php8.0
不知道其它用swoole开发项目的人是怎么调试的,难道都是一用yasd的命令行模式一个一个命令打出来的?
还是根本就没用yasd扩展,直接代码里一路的echo var_dump print来调试?
from yasd.
跟你一样的问题。困扰很久了。各种环境都试了,都会崩掉,:( ,我是phpsotrm+yasd+php8.0 不知道其它用swoole开发项目的人是怎么调试的,难道都是一用yasd的命令行模式一个一个命令打出来的? 还是根本就没用yasd扩展,直接代码里一路的echo var_dump print来调试?
我也是各种都试了,我是php8.1 + swoole5.0 + hyper3.0 没有调试工具写代码太蛋疼了
from yasd.
可以考虑PHP升级后使用 swoole-src的 xdebug分支,https://github.com/swoole/swoole-src/tree/support-xdebug
可以直接使用xdebug进行调试,前提是PHP版本要大于等于8.1
from yasd.
@summerKK 刚好你是php8.1的,你可以试试
from yasd.
@summerKK 刚好你是php8.1的,你可以试试
大佬,我测试了一下是可以使用的
-
在
hyperf2
测试的时候会有一个notice
级别的错误 :Using Xdebug in coroutines is extremely dangerous, please notice that it may lead to coredump!
-
在
hyperf3
测试这个错误是fatal
级别的错误 -
既然
php8.1
以后swoole
支持xdebug
,这里是不是加个版本判断,大于8.1的,不检测xdebug
-
我的环境是
php8.1 + swoole5.0.1(support-xdebug)
from yasd.
xdebug是3.1.1
from yasd.
@summerKK 刚好你是php8.1的,你可以试试
大佬,我测试了一下是可以使用的
你用的是哪个swoole-src分支,support-xdebug这个分支在php大于等于8.1的情况下是不会抛出这个xdebug告警的
from yasd.
from yasd.
from yasd.
xdebug是3.1.1
xdebug可以考虑用最新的
from yasd.
在PHP8.1的情况下,才会定义宏SWOOLE_COROUTINE_MOCK_FIBER_CONTEXT
是我的问题,拉的代码拉到master了 😂😂😂😂😂😂😂
from yasd.
嗯嗯,master分支的swoole,xdebug调试的时候,调用栈是乱的,而且还可能会发生coredump
from yasd.
@huanghantao @summerKK 非常感谢,百忙之中提供这个问题的解决方案, 我也尽快尝试把项目升级到8.1。
from yasd.
嗯嗯,master分支的swoole,xdebug调试的时候,调用栈是乱的,而且还可能会发生coredump
重新编译后,运行正常
非常感谢
周末愉快~ 😉😉😉😉😉
from yasd.
@huanghantao @summerKK 非常感谢,百忙之中提供这个问题的解决方案, 我也尽快尝试把项目升级到8.1。
老哥,提不上感谢,我就测试了一下
我写代码重度依赖xdebug,没有这个感觉不会调试了😂😂😂😂😂
升级php版本可以考虑一下 : https://github.com/rectorphp/rector
from yasd.
Related Issues (20)
- 请问下怎么解决单元测试覆盖率问题 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
- 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
- 希望可以支持php7.1版本
- Mac M2pro 芯片 hyperf 添加断点提示 socket not writable HOT 1
- VS Code docker 环境 yasd HOT 3
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.