调试会话在没有暂停的情况下完成 [英] Debug session was finished without being paused

查看:73
本文介绍了调试会话在没有暂停的情况下完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我使用 PhpStorm (2018.1) 的 Laravel 项目中,我无法使用 xdebug (2.9.5) 调试我的会话.任何断点都会被忽略,会话结束而不会暂停.如果我在 PHP 脚本的第一行设置 Break,则会话将在 index.php 文件处停止.我使用的是 Ubuntu 20.04.

In my Laravel project using PhpStorm (2018.1) I am not able to debug my session using xdebug (2.9.5). Any breakpoint gets ignored and session ends without being paused. If I set Break at first line in PHP scripts then session stops at index.php file. I am using Ubuntu 20.04.

PHP 7.4.5 (cli) (built: Apr 23 2020 08:10:29) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v2.9.5, Copyright (c) 2002-2020, by Derick Rethans

这是我在 php.ini 中对 xdebug 的设置

This are my settings for xdebug in php.ini

[xdebug]
zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9001
xdebug.remote_log="/tmp/xdebug.log"

我有一些 PhpStorm 设置:

I have some PhpStorm settings:

我在这里遗漏了什么?

我的 Chromium 中也有 Xdebug 辅助扩展,但它似乎具有相同的效果,启用和禁用它.

I also have Xdebug helper extension in my Chromium but it seems to have the same effect with it enabled as well as disabled.

推荐答案

在我使用 PhpStorm (2018.1) 的 Laravel 项目中,我无法使用 xdebug (2.9.5) 调试我的会话.

In my Laravel project using PhpStorm (2018.1) I am not able to debug my session using xdebug (2.9.5).

它刚刚触发:

  • PhpStorm 2018.1
  • Xdebug 2.9.5

您必须升级 PhpStorm.您需要 PhpStorm 2018.3 或更高版本才能使用 Xdebug 2.7 或更高版本.

You have to upgrade PhpStorm. You need PhpStorm 2018.3 or newer in order to be able to work with Xdebug 2.7 or newer.

问题出在 Xdebug 协议中已更改的 XML 命名空间中,从 Xdebug 2.7 开始(https 而不是 http).自 PhpStorm 2018.3 起已修复/支持(请参阅 WI-43622).

The problem is in changed XML namespace in Xdebug protocol, as of Xdebug 2.7 (https instead of http). It's fixed/supported since PhpStorm 2018.3 (see WI-43622).

使用您当前的 IDE 版本,您可以使用 Xdebug 2.6.x max(不支持 PHP 7.4).

With your current IDE version you may work with Xdebug 2.6.x max (which does not support PHP 7.4).

这篇关于调试会话在没有暂停的情况下完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆