Konloch / Konloch/bytecode-viewer

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

Open
#168 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
Java
Stars
15.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the embedded decompiler integrations and examining how class line numbers are represented in the generated Java source. Use JD Eclipse's claimed behavior as a comparison point, then verify the result against debugger breakpoints and stack traces. Done means decompiled source lines align with the original class line numbers.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
reverse-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.