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

phpstorm使用yasd自动停留在 #132

Closed
cuixiong opened this issue May 28, 2021 · 10 comments
Closed

phpstorm使用yasd自动停留在 #132

cuixiong opened this issue May 28, 2021 · 10 comments

Comments

@cuixiong
Copy link

cuixiong commented May 28, 2021

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.
    开启断点调试 , 为什么会在这个 ProxyManager 处等待调试呢 ? (我并没有在此处设置断点 ) ,
    配置 : SCAN_CACHEABLE = false , 断点会一直在附近打转 . 把配置改为true , 只会走3~4次 就走完了.

  2. What did you expect to see?
    这是什么原因呢 ? 本身如此 ? 还是扩展bug ? 麻烦大佬解答一下

  3. What did you see instead?
    image

  4. What is your machine environment used (show your uname -a & php -v & gcc -v) ?
    WIN10 , WSL2 , hyperf项目在Docker容器里跑 . phpstorm 2021.1
    1)Linux a95ca3b42538 5.4.72-microsoft-standard-WSL2 Support print property of object #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 Linux
    2)PHP 7.4.19 (cli) (built: May 23 2021 06:27:45) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.19, Copyright (c), by Zend Technologies
    with Yasd v0.3.6, Our Copyright, by codinghuang
    3)/bin/sh: gcc: not found

@huanghantao
Copy link
Member

huanghantao commented May 28, 2021 via email

@cuixiong
Copy link
Author

bash-5.0# php --ri yasd
yasd
Yasd => enabled
Author => codinghuang codinghuang@qq.com
Version => 0.3.6
Built => May 28 2021 11:19:04

Directive => Local Value => Master Value
yasd.breakpoints_file => no value => no value
yasd.debug_mode => remote => remote
yasd.remote_host => 192.168.0.100 => 192.168.0.100
yasd.remote_port => 9000 => 9000
yasd.depth => 1 => 1
yasd.log_level => -1 => -1
yasd.max_executed_opline_num => 10000 => 10000
xdebug.coverage_enable => 1 => 1
xdebug.profiler_enable => 1 => 1
xdebug.remote_autostart => 1 => 1
xdebug.remote_connect_back => 0 => 0
xdebug.remote_mode => req => req

@cuixiong
Copy link
Author

请问 yasd有连接关闭的时间吗 ? , 控制台返回一个连接关闭的情况. (大概一个吃早餐的时间再去访问服务似乎有出现这种情况)
[yasd] recv command error, connection closed
[yasd] recv command error, connection closed
[2021-05-29 00:51:20 $13.0] WARNING check_worker_exit_status: worker#1[pid=27] abnormal exit, status=0, signal=11
A bug occurred in Swoole-v4.6.7, please report it.
The Swoole developers probably don't know about it,
and unless you report it, chances are it won't be fixed.
You can read How to report a bug doc before submitting any bug reports:

https://github.com/swoole/swoole-src/blob/master/.github/ISSUE.md
Please do not send bug reports in the mailing list or personal letters.
The issue page is also suitable to submit feature requests.

@huanghantao
Copy link
Member

huanghantao commented May 29, 2021 via email

@huanghantao
Copy link
Member

huanghantao commented May 29, 2021 via email

@cuixiong
Copy link
Author

大佬 , 还是厚脸皮的想打扰你一下 , 请问这是IDE工具的问题, 还是扩展问题 , 还是我的扩展配置有问题?

Hyperf-Skeleton.2021-05-29.10-02-12-1.mp4

@cuixiong
Copy link
Author

调试其他php脚本也是一样情况 .

1622256353125-1.mp4

@cuixiong
Copy link
Author

已解决 : 谢谢大佬给的提示 , yasd.max_executed_opline_num , 这个参数的大概意思是 yasd最大执行操作数后会自动断点 , 因此设置为0是无效的 , 反而每次都会自动停留断点. 于是我把这个参数值调大之后 , 就没有上述出现的问题了!

@huanghantao
Copy link
Member

huanghantao commented May 29, 2021 via email

@cuixiong
Copy link
Author

是的我刚才使用最新版0.38 , 这个版本yasd.max_executed_opline_num 配置默认为0 , 然后已经解决了这个问题. 顺便再说一句我另一个环境装的是0.37版本 , 默认这个配置是为0 , 也就是说<=0.36 这个配置的0代表每执行一条语句就断点. 总而言之 谢谢大佬 !

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

2 participants