IDEA 怎么查看底层 jar 包中方法的调用

2021-09-06 16:50:41 +08:00
 vicya

Eclipse 好像有插件可以看 jar 包中方法在包内的调用,IDEA 有类似插件吗?

1937 次点击
所在节点    程序员
11 条回复
AoEiuV020
2021-09-06 16:56:23 +08:00
这不是默认直接就能看的吗?黄底的就是 jar 包内部的调用,
wolfie
2021-09-06 16:57:19 +08:00
右上角 download source,猜测反编译的不缓存关系
vicya
2021-09-06 17:01:25 +08:00
@AoEiuV020 是 class 文件的方法调用
vicya
2021-09-06 17:02:43 +08:00
@wolfie 就是因为没有源码,所以挺尴尬的。主管没给 也不好意思要。
AoEiuV020
2021-09-06 17:06:08 +08:00
@potato1949 闭源也就算了,不好意思要是怎么回事?
没源码就只能反编译了,jadx 之类的把整个 jar 反编译了假装是源码再到 idea 里手动配置源码路径试试,
zoharSoul
2021-09-06 17:10:25 +08:00
@potato1949 #3 图上不就是 class 文件的吗
aguesuka
2021-09-06 17:12:47 +08:00
把 scope 设置为 All Places
aguesuka
2021-09-06 17:32:09 +08:00
ctrl + alt + f7, 点击扳手图标, 然后修改 Scope 的下拉框
aguesuka
2021-09-06 17:37:59 +08:00
wolfie
2021-09-06 17:50:06 +08:00
> In case the library has no sources, you can perform offline decompilation of the entire library using the command line batch decompiler and attach the directory with the decompiled sources to the library.

https://stackoverflow.com/questions/45193746/how-to-search-string-in-decompiled-class-files-in-intellij

跟楼上一个思路,反编译整个包
siweipancc
2021-09-06 18:24:03 +08:00
你要看时序图? 2021 有个新的 run coverage

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/800204

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX