Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当使用带有 XDebug 的 Eclipse PDT 来调试 PHP Web 应用程序时,有没有办法打开一个控制台窗口,允许我输入并查看当前范围内任意表达式的值?
这似乎是调试环境的一个明显元素,我可能遗漏了一些东西,但唯一类似于控制台的东西说“此时没有控制台可显示”
这是诀窍,正常启动 PHP 调试会话,然后当您到达断点时,或者在您单步执行代码时,请按照以下步骤操作:
从那时起,您可以继续单步执行代码、添加或删除表达式等。