How to decompile with correct line numbers using fernflower?
I'm using Intellij Idea 14 working with big java project where a lot of code is compiled and w/o sources.
As far as I know Idea can't make a search in compiled code (as eclipse does), but it can decompile single file using build-in fernflower and this also gives a possibility to debug through compiled code.
Is there a way to decompile all compiled code at once the same way Idea does and attach it to project so that it was possible to search through "Project and Libs" w/o loosing debugging feature in decompiled sources?
I've tried using Bytecodeviewer with different fernflower options, but the result was that debugging was broken (showed wrong lines) after attaching the decompiled sources.
I found that on OSX you can change this setting in the following file:
~/Library/Preferences/IntelliJIdea2016.1/options/options.xml
Add the following properties:
<property name="decompiler.use.line.mapping" value="true" />
<property name="decompiler.dump.original.lines" value="true" />
ok, as there are no news regarding this, I've created a little plugin which decompiles the jar file with compiled code to new *-sources.jar file using build-in Intellij fernflower decompiler and attaches sources to project. anyone interested, can take a look at decompile and attach plugin in jetbrains plugin repository
Update answering my question about line numbers in decompiled code using fernflower . I found ' decompiler.use.line.table ' flag in Intellij 's fernflower which preserves line numbers.
上一篇: 禁用HTML5表单元素的验证
