Xdebug 异常类的方法 [英] Methods for an Xdebug Exception class

查看:26
本文介绍了Xdebug 异常类的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以看到 Xdebug 创建的扩展 Exception 类的方法?我想获得 HTML 格式的堆栈跟踪.

Is it possible to see the methods of the extended Exception class Xdebug creates? I want to get at the HTML formatted stack trace.

推荐答案

所以在对它进行黑客攻击后,没有像 Niels 展示的方法,但有一个名为 $exception->xdebug_message 的公共属性,它具有 HTML 格式的消息.如果您要将其放置在 HTML 页面中,请不要忘记将其包装在 table 标记中.

So after hacking at it, there's no method like Niels showed but there's a public property called $exception->xdebug_message that has the HTML formatted message. Don't forget to wrap it in a table tag if you are placing it in a HTML page.

echo '<table>';
echo $exception->xdebug_message;
echo '</table>';

这篇关于Xdebug 异常类的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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