Non-Debuggable lines?

By: Josh Fletcher

Abstract: Why does the JBuilder debugger indicate that a line in my source file can't be debugged?

Question:
There are lines in my source file that the JBuilder Debugger tells me are not break-pointable (there is no blue dot). Why?
 
Answer:

The answer to this is similar to the FAQ on source code synchronization in the debugger. You may wish to read that FAQ as well.

The probable explanation for this problem is that you are hitting a known issue where you have End Of Line characters other than Carriage Return/Line Feed in your file. If you compile and debug those classes *on WinTel*, all lines that do not terminate in CRLF will be joined and not be break-pointable. This is *not* a bug. This is how classes are built (for debugging) in Java.

Also note that breakpoints need to be on executable lines. Not a line declaring a class or a method; executable lines. When you are in the debugger the little blue dots in the margin are the lines in your compiled class that are break-pointable.

 

Server Response from: ETNASC01