bytecode-viewer icon indicating copy to clipboard operation
bytecode-viewer copied to clipboard

The decompiled code does not have the same line number as in the class

Open goldyliang opened this issue 8 years ago • 1 comments

I found all the embedded decompiler does not generate the java file with the same line numbers as in the class.

Because of this issue, one can not use the de-compiled source code to set debug point correctly, and can not align the stacktrace to the de-compiled code easily.

The Eclipse plugin JD Eclipse claims to be able to achieve this. I hop bytecode-viewer can do this also.

goldyliang avatar Mar 01 '17 20:03 goldyliang

how about output original line number as comments like

/* 2 */          System.out.println(1);

gMan1990 avatar May 16 '19 04:05 gMan1990