带有Xdebug的VS代码不显示完整的PHP变量值

发布于 2025-02-09 13:36:47 字数 332 浏览 0 评论 0原文

我正在使用步骤调试器来调试我的代码。

我有一个存储在$ x的JSON字符串,我需要复制该值。 但是该值没有完全显示,它只是显示了一半,所以我无法复制它。

有没有办法在没有解决方法的情况下解决它,例如将值写入文件中?


用VSC 1.68.1测试

I'm using a step debugger to debug my code.

I have a json string stored in $x and I need to copy the value.
But the value is not showing completly, it just shows half of it, so I can't copy it.

enter image description here

Is there a way to solve it without a workaround e.g. write the value into a file?


Tested with VSC 1.68.1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深者入戏 2025-02-16 13:36:47

可以找到该解决方案在这里

只需添加以下内容:

"xdebugSettings": {
    "max_children": 128,
    "max_data": -1,
    "max_depth": 3
},

到您的.vscode/laining.json

The solution can be found here.

Just add this:

"xdebugSettings": {
    "max_children": 128,
    "max_data": -1,
    "max_depth": 3
},

to your .vscode/launch.json

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文