1

I am working on a Java application and there are certain classes which are more than 60K lines of code. One challenge we always face is navigating thru debugger when lines cross 60K during debugging. When 60K is crossed, the debugger stops showing the code and values. One way we overcome this is to move the impacted function above 60K lines and then put the debugger again, but this process is inconvenient at times.

Question:

Where is the limitation, is it eclipse or java or something else which doesn't allow debugger to function properly beyond 60K ?

3
  • 4
    Maybe you should consider refactoring these large classes. Commented Mar 3, 2020 at 8:17
  • This sounds like a massive violation of the single reponsibility principle (and probably a few others as well). Commented Mar 3, 2020 at 8:20
  • I would love to refactor. Hands tied. Commented Mar 3, 2020 at 12:35

1 Answer 1

1

The limitation is given by the Java bytecode format:

In the line number table, the line number is stored as an unsigned two bytes quantity (u2), which results in a maximum line number of 65 535.

Apart from that, the effective limitation is given by the people who have to read the code. 60k LOC is far too much that it would be readable code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.