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

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

问题描述

我想查看编译后的字节码,以便我可以详细了解它的工作原理.我正在使用 IntelliJ IDEA 15,但找不到查看字节码的方法.我错过了什么?

I want to see the compiled bytecode so I can learn more about how it works under the cover. I'm using IntelliJ IDEA 15 but can't find a way to see the bytecode. What am I missing?

推荐答案

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

IntelliJ IDEA comes with a bytecode viewing tool for Kotlin:

工具 → Kotlin → 显示 Kotlin 字节码

Tools → Kotlin → Show Kotlin Bytecode

也可以通过 Ctrl/⌘+Shift+A 作为 Show Kotlin Bytecode 操作使用.

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 Bytecode - 如何在 IntelliJ IDEA 中进行分析?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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