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 中调试时修改 Debug 行标记,引起项目重启 #148

Closed
wxfjamdc opened this issue Sep 2, 2021 · 1 comment
Closed

Comments

@wxfjamdc
Copy link

wxfjamdc commented Sep 2, 2021

重现:

  1. PhpStorm 开启 listen
  2. 增加 debug 行标记
  3. 启动项目 php -e bin/hyperf start
  4. 改变 debug 行标记
  5. 调用会触发 debug 的接口
  6. 终端报:
corrupted size vs. prev_size
[2021-09-02 07:12:52 $12149.0]  WARNING swManager_check_exit_status: worker#0[pid=12161] abnormal exit, status=0, signal=6

Worker 重启
swoole:4.4.26 和 4.7.1都出现了

运行环境:
laradock

PHP 7.4.23 (cli) (built: Aug 26 2021 15:51:37) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.23, Copyright (c), by Zend Technologies
    with Yasd v0.3.9-alpha, Our Copyright, by codinghuang
Yasd => enabled
Author => codinghuang <codinghuang@qq.com>
Version => 0.3.9-alpha
Built => Sep  2 2021 03:43:06

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

[PHP Modules]
ast
bcmath
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
intl
json
libxml
mbstring
memcached
msgpack
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
sqlite3
standard
swoole
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
yasd
Zend OPcache
zip
zlib

[Zend Modules]
Yasd
Zend OPcache
@huanghantao
Copy link
Member

可以考虑使用 swoole-src的 xdebug分支,https://github.com/swoole/swoole-src/tree/support-xdebug
可以直接使用xdebug进行调试,前提是PHP版本要大于等于8.1

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