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

Ubantu18.04+php7.2 + yasdv0.2.5 + vscode 存在断点残留 #34

Closed
jobinli opened this issue Dec 18, 2020 · 4 comments
Closed

Ubantu18.04+php7.2 + yasdv0.2.5 + vscode 存在断点残留 #34

jobinli opened this issue Dec 18, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@jobinli
Copy link

jobinli commented Dec 18, 2020

使用 remote 模式与 vscode 对项目下的 test.php 进行断点调试,断点不生效直接将文件执行完。同样使用 cmd 模式也是如此。同时 cmd 模式下每次退出调试重新开始后,上次打的断点还会存在

php -v

PHP 7.2.24-0ubuntu0.18.04.7 (cli) (built: Oct  7 2020 15:24:25) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.24-0ubuntu0.18.04.7, Copyright (c) 1999-2018, by Zend Technologies

php -m

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

[Zend Modules]
Zend OPcache

php --ri yasd

yasd

Yasd => enabled
Author => codinghuang <codinghuang@qq.com>
Version => 0.1.0
Built => Dec 18 2020 10:39:41

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 => 9000 => 9000
yasd.depth => 1 => 1

cmd 模式断点残留情况
image

cmd 模式下断点不生效
image

@huanghantao
Copy link
Member

你应该配置成zend_extension=yasd

@jobinli
Copy link
Author

jobinli commented Dec 18, 2020

你应该配置成zend_extension=yasd

抱歉,马虎了。不过还是存在断点残留的问题。
image

@sy-records sy-records added the bug Something isn't working label Dec 18, 2020
@sy-records sy-records changed the title Ubantu18.04+php7.2 + yasdv0.2.5 + vscode 断点无效 Ubantu18.04+php7.2 + yasdv0.2.5 + vscode 存在断点残留 Dec 18, 2020
@huanghantao
Copy link
Member

你用的什么版本?你可以使用master分支的代码,可以不缓存断点

@jobinli
Copy link
Author

jobinli commented Dec 18, 2020

切到master分支的确没有这个问题。

@jobinli jobinli closed this as completed Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants