行号不显示? [英] Line number not showing?

查看:95
本文介绍了行号不显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在程序中发现了一些问题.
我当时使用log4j进行记录,
但是,在日志文件中,所有行号都变为?".

I have discovered some issues in my program.
I was using log4j for logging,
however, inside the log file, all line number become "?".

对话模式如下:

The conversation pattern is as follow:

log4j.appender.file.layout.ConversionPattern=%d{dd/MM/yyyy HH:mm:ss,SSS} %5p %c: %L - %m%n

推荐答案

您很可能在已编译的工件中缺少调试信息. IE.这不是log4j的错,您需要确保正在编译包含调试信息的东西. 一个快速的测试是尝试使用您最喜欢的IDE调试您的应用程序. 如果没有调试信息,它将抱怨并且无法建立调试会话...

You are most probably missing debug information in your compiled artifacts. I.e. it is not log4j's fault, you need to make sure you are compiling your stuff with debug information included. A quick test would be to try and debug your app with your favourite IDE. If there is no debug info it will complain and won't establish debug session...

这篇关于行号不显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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