Kotlin字节码 - 如何在IntelliJ IDEA中进行分析? [英] Kotlin Bytecode - How to analyze in IntelliJ IDEA?

查看:706
本文介绍了Kotlin字节码 - 如何在IntelliJ IDEA中进行分析?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Kotlin 的新手,我希望能够查看已编译的字节码,以便我可以了解更多有关它如何工作的信息。我正在使用 IntelliJ IDEA 15,但找不到查看字节码的好方法。我缺少什么?

I'm new to Kotlin and I want to be able to view the compiled bytecode so I can learn more about how it works under the covers. I'm using IntelliJ IDEA 15 but can't find a good way to view the bytecode. What am I missing?

推荐答案

IntelliJ IDEA附带Kotlin的字节码查看工具:

IntelliJ IDEA comes with a bytecode viewing tool for Kotlin:

工具→ Kotlin→显示Kotlin字节码

也可以通过 Ctrl /⌘ + Shift + A 作为显示Kotlin字节码操作。

Also available through Ctrl / ⌘+Shift+A as Show Kotlin Bytecode action.

这是一个很棒的工具,可以在源文件中移动时跳转到相应的字节码。并且它会在源更改时动态更新字节码。

It's a great tool that can jump to the corresponding bytecode when you move around in the source file. And it updates the bytecode on the fly whenever the source changes.

此外,我还是建议 jclasslib Bytecode Viewer 作为低级类文件分析的外部工具(例如检查常量池)。现在它也可以作为 IntelliJ IDEA插件

Also, I'd like to recommend jclasslib Bytecode Viewer as an external tool for low-level class files analysis (such as inspecting constant pools). Now it is also available as an IntelliJ IDEA plugin.

这篇关于Kotlin字节码 - 如何在IntelliJ IDEA中进行分析?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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