如何获取 J9 VM (Linux) 上打印的调试信息?
我正在使用 J9 VM 在 Linux 计算机 (BusyBox) 上运行我的应用程序。 在我的 Windows 环境上进行开发和测试时,也使用 J9,我获得了有关堆栈跟踪的完整调试信息。 Linux 机器上不会发生这种情况。
我已在我的知识允许的范围内检查了两个虚拟机的配置。另外,我还删除了 Windows J9 安装中 Linux J9 安装中没有的库。
有谁知道如何获取调试信息而不是“未知来源”?是否有任何配置可以打印此信息?
Windows 输出:
>j9 -jcl:foun11 Test
java.lang.Exception
at Test.doStuff(Test.java:6)
at Test.main(Test.java:11)
Linux 输出:(
#j9 -jcl:foun11 Test
java.lang.Exception
at Test.doStuff(Unknown Source)
at Test.main(Unknown Source)
两个输出都引用相同的 Test.class,使用 -g:lines,vars,source 编译。)
谢谢!
I'm using J9 VM to run my application on a Linux machine (BusyBox).
When developing and testing on my Windows environment, also with J9, I get full debug information on stack traces. That doesn't happen on the Linux machine.
I've checked both VMs configuration as much as my knowledge permits. Also, I've stripped my windows J9 installation of libraries which are not on the Linux J9 Installation.
Does anyone have any idea how to get the debug info instead of "Unknown Source"? Is there any configuration for having this information printed?
Windows Output:
>j9 -jcl:foun11 Test
java.lang.Exception
at Test.doStuff(Test.java:6)
at Test.main(Test.java:11)
Linux Output:
#j9 -jcl:foun11 Test
java.lang.Exception
at Test.doStuff(Unknown Source)
at Test.main(Unknown Source)
(Both outputs refer to the same Test.class, compiled with -g:lines,vars,source.)
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据这篇文档 以下选项可用于显示缺少的信息:
显然,默认情况下,行号是关闭的。但是,正如该文件所述,该选项是“非标准的,如有更改,恕不另行通知”。现在它会起作用。
希望这个答案对将来的任何人都有用。
According with this piece of documentation the following option can be used to show the missing information:
Apparently, by default, the line numbers are off. But, as the document states, the option is "nonstandard and subject to change without notice." It will work for now.
Hope this answer is useful to anyone in the future.