Closed GoogleCodeExporter closed 9 years ago
Note also that JDEE is not installed.
Original comment by jason.t...@gmail.com
on 6 Jan 2011 at 8:15
As with issue 16, I cannot reproduce this. However, line 2 is not a valid
location to create a breakpoint. If you try to create a breakpoint at line 3
or 4 (or any other line with source), does it highlight correctly?
Original comment by udalrich.schermer
on 9 Jan 2011 at 2:58
If I try to create a breakpoint at line 3 I see the same behavior - line 4 is
highlighted and the cursor moves to the beginning of line 4.
Original comment by jason.t...@gmail.com
on 9 Jan 2011 at 3:03
*JDIbug-Breakpoints* indicates, however, that the breakpoint is set on line 3.
Original comment by jason.t...@gmail.com
on 9 Jan 2011 at 3:06
During execution the correct, current line is highlighted blue. The
*JDIbug-Locals* buffer, however, says "No debug information available"
Original comment by jason.t...@gmail.com
on 9 Jan 2011 at 3:08
Did you compile with javac or javac -g? I think the default option is to
compile with debug information turned off. Or perhaps just lines and source
turned on, but variable information turned off. If you recompile with -g, it
should display the variables.
It is strange that the breakpoints buffer displays the correct line, but the
wrong one gets highlighted. If you do M-: (goto-char (point-min)) RET from the
java buffer, does it go to the first line? If you then do M-: (forward-line
(1- 3)) RET, do you then go to line 3?
That is basically what the code is doing to figure out where to highlight the
breakpoint. Although that is also what it does to highlight the current line
in blue, so I do not know why it would work in one case but not the other.
Original comment by udalrich.schermer
on 9 Jan 2011 at 4:16
Yeah, evaluating the two expressions you indicated correctly goes to line 3.
Weird. I'll step into the jdibug-toggle-breakpoint function and see if I can
find what's going wrong.
Original comment by jason.t...@gmail.com
on 9 Jan 2011 at 4:41
Looks like an issue with the 0.4 release vs. trunk. Here's the relevant part of
my jdibug-breakpoint-update:
(forward-line (or (jdibug-breakpoint-line-number bp)
(jdibug-get-class-line-number)))
And from trunk:
forward-line (1- (or (jdibug-breakpoint-line-number bp)
(jdibug-get-class-line-number))))
I'll switch to trunk and see if that resolves my problem.
Thanks!
Original comment by jason.t...@gmail.com
on 9 Jan 2011 at 5:52
Building from trunk fixed this problem for me.
Original comment by jason.t...@gmail.com
on 9 Jan 2011 at 11:20
This is fixed in the 0.5 branch and will be part of 0.5 when released.
The 0.5 branch is intended to contain working code which users could download
and use, but it should be considered beta code. The change described in
comment 8 will also fix the issue.
Original comment by udalrich.schermer
on 10 Jan 2011 at 3:45
Original comment by udalrich.schermer
on 12 Apr 2011 at 3:30
Original issue reported on code.google.com by
jason.t...@gmail.com
on 6 Jan 2011 at 8:13