PHP7.* 64 位 +nginx+phpstorm2019.2 + xdebug 断点程序崩溃

用的环境是phpstudy
可以正常断点
但是比如我调试tp6代码index.php

PHP7.* 64位+nginx+phpstorm2019.2 + xdebug断点程序崩溃

问题

1.鼠标直接放在$response上后程序直接结束
2.如图 当我点了Evaluate后程序直接结束
查看nginx的error.log系统日志
2019/09/18 17:41:11 [error] 5460#14532: *1 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: tp6.local.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9002", host: "tp6.local.com"
不明白具体有什么关联

发现有人问了同样的问题http://php.upupw.net/ank2discuss/40/12960.html

php7+对应的debug版本 都试过了 phpstorm也重新安装过了结果一样

讨论数量: 4

麻烦各位大神,看看有没有遇到同样问题 的,谢谢 :wink:

5年前 评论

发现Evaluate一个对象就会出现崩溃,如果是普通变量是不会的

5年前 评论

PHPStorm官网关于evaluating-expressions有这个说明:

Expression Evaluation can only be "single-level". In other words, if PhpStorm stops at a breakpoint within a method called from the Expression Evaluation, you cannot use the Expression Evaluation feature again.

不过看不太懂。

5年前 评论
ouyangessen (楼主) 5年前

你写的表达式有问题,response变量已经存在了,而且你确定你写的表达式正确?

你试试:

var_export($response, true);

提交看看是不是就有结果打印了。

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!