从堆转储中获取 main() 方法参数

发布于 2024-12-19 08:31:37 字数 110 浏览 4 评论 0原文

我有一个 Java 二进制堆转储文件。是否有一种通用方法可以找出传递给程序的 main() 方法的命令行参数?

我倾向于使用 Eclipse MAT 来处理堆转储。

I have a Java binary heap dump file. Is there a generic way to find out the command line parameters that were passed in to the program's main() method?

I tend to use Eclipse MAT for working with heap dumps.

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

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

发布评论

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

评论(1

今天小雨转甜 2024-12-26 08:31:37

如果main线程仍然存在,那么应该在堆上引用参数。您应该能够使用 OQL 语句找到它,如 https://stackoverflow.com/a/3675163/32090

If the main thread is still alive then the arguments should be referenced on the heap. You should be able to find it using OQL statement like one mentioned in https://stackoverflow.com/a/3675163/32090

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