如何查看 Wicket 应用程序的堆栈跟踪?

发布于 2024-10-11 19:40:48 字数 294 浏览 5 评论 0原文

我是 Wicket 新手,正在处理现有项目。如何在 UI 上查看来自 Wicket 的堆栈跟踪?目前我看到以下内容:

内部错误
返回首页

我在 log4j.xml 中设置了以下内容,但在日志中也没有看到任何堆栈跟踪:

<logger name="org.apache.wicket">
    <level value="DEBUG"/>
</logger>

I am new to Wicket and working on an existing project. How do I see the stack trace from Wicket on the UI? Currently I see the following:

Internal error
Return to home page

I have set the following in log4j.xml, but don't see any stack traces in the logs either:

<logger name="org.apache.wicket">
    <level value="DEBUG"/>
</logger>

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

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

发布评论

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

评论(3

梦醒灬来后我 2024-10-18 19:40:48
public class MyApplication extends WebApplication {
    @Override
    protected void init() {
        /* ... */

        // Tells wicket to use a helpful 'debug' exception page with a snapshot of the 
        // component model, and the exception stack trace.
        // Other settings are available to show pages that say there has been an internal error 
        // (a production-friendly page)
        // In addition, more advanced usage allows you to override this behavior completely.

        getSettings().setUnexpectedExceptionDisplay(ApplicationSettings.SHOW_EXCEPTION_PAGE);
    }
}
public class MyApplication extends WebApplication {
    @Override
    protected void init() {
        /* ... */

        // Tells wicket to use a helpful 'debug' exception page with a snapshot of the 
        // component model, and the exception stack trace.
        // Other settings are available to show pages that say there has been an internal error 
        // (a production-friendly page)
        // In addition, more advanced usage allows you to override this behavior completely.

        getSettings().setUnexpectedExceptionDisplay(ApplicationSettings.SHOW_EXCEPTION_PAGE);
    }
}
π浅易 2024-10-18 19:40:48
<context-param>
 <param-name>configuration</param-name>
 <param-value>development</param-value>
 </context-param>

将 web.xml 更新为开发而不是部署

<context-param>
 <param-name>configuration</param-name>
 <param-value>development</param-value>
 </context-param>

update web.xml to development instead of deployment

夏花。依旧 2024-10-18 19:40:48

此外,调试输出的详细信息由 wicket 的“配置”运行时决定,请参阅 http://clipmarks.com/clipmark/B00CE497-A646-4CB6-B85D-F68332903C5A/

In addition, the detail of debugging output is determined by the "configuration" runtime of wicket, see short explanation at http://clipmarks.com/clipmark/B00CE497-A646-4CB6-B85D-F68332903C5A/

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