How to debug decompiled jd-intelliJ code

I use IntelliJ Idea 12 and 13. We have no sources, so we need to decompile the bytecode in order to understand the logic.

I installed the jd-intelliJ plugin, it seems to work fine, but I have no way to set a breakpoint in the decompiled code.

I tried to use the JAD plugin before, but the decompiled code is so ugly when I use this plugin. I also tried to decompile the jar file using jd-GUI, put it in my maven repository and use it for debugging in IntelliJ, it also does not work correctly.

Can I use a good decompiler like JD and debug it in my Idea IDE?

+6
source share
2 answers

The latest version of the JD-GUI has the ability to redistribute line numbers. (Help-> Settings)

When the line numbers are correctly aligned, there should be no problem debugging the source that is connected in your maven project.

+2
source

I think you should use a decompiler to extract java files from class files. Once you have java files, it should be easier to use Intellij / Eclipse with java files when debugging. What you use is the Intellij Decompiler Plugin, which shows you java code but does not allow you to extract it into java files: what should you do with the JD-GUI that has the Save command.

0
source

All Articles