gpt4 book ai didi

phpstorm - 如何防止 PhpStorm 打破 ReflectionExceptions?

转载 作者:行者123 更新时间:2023-12-04 07:20:39 31 4
gpt4 key购买 nike

到目前为止,以下添加条件还没有奏效:

  • !(Exception instanceof ReflectionException)
  • !(Exception instanceof \ReflectionException)
  • !(this instanceof ReflectionException)
  • !(this instanceof \ReflectionException)
  • !anInstanceOf(ReflectionException)
  • !anInstanceOf(\ReflectionException)

  • 当抛出 ReflectionException 时,它仍然总是中断。
    PhpStorm Documentation
    enter image description here

    最佳答案

    不幸的是,没有办法。
    断点条件在 eval 内被发送到 Xdebug命令,所以它必须是可以实际评估的东西。Exception PhpStorm 中的节点 Variables另一方面, Pane 是在 break 上从 Xdebug 接收的。事件一次并且无法进一步请求/评估,因此您无法将其放入条件中。
    因此,PhpStorm 应该在异常断点中有一个额外的字段来检查 Exception节点内容或 Xdebug 应该可以以某种方式评估异常。
    我认为值得向我们提交功能请求:https://youtrack.jetbrains.com/newIssue?project=WI

    关于phpstorm - 如何防止 PhpStorm 打破 ReflectionExceptions?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68522629/

    31 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com