udalrich / jdibug

Automatically exported from code.google.com/p/jdibug
17 stars 4 forks source link

Breakpoint(s) not hit. #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download JdibugTest.java
2. run  javac JdibugTest.java
3. run java -Xdebug 
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y JdibugTest
4. Open JdibugTest.java in emacs.
5. Set a breakpoint at doStuff() using jdibug-toggle-breakpoint
6. Connect to the running process using jdibug-connect - The main thread is 
correctly shown in the Frame browser.
7. Resume execution using jdibug-resume.

What is the expected output? What do you see instead?

Expect execution to suspend at the breakpoint set at step 5. Instead, execution 
continues until main() exits.

What version of the product are you using? On what operating system?

GNU Emacs 23.2.1 (x86_64-apple-darwin10.4.0, NS apple-appkit-1038.32)
jdibug 0.4 release
JDEE is NOT installed

JDWP log & traffix, along with jdibug configuration from .emacs: 
https://gist.github.com/768480

Original issue reported on code.google.com by jason.t...@gmail.com on 6 Jan 2011 at 8:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am either unable to reproduce this, or the documentation is misleading you.  
When you say to set a breakpoint at doStuff(), do you mean line 2:

  private static int doStuff(int input) {

or line 11:

    System.out.println("Result: " + doStuff(42));

If I set a breakpoint at line 11, the program stops when it reaches that line.  
If I set a breakpoint at line 2, it does not stop.  However, the program does 
not support setting a breakpoint at a method declaration.  It only supports 
setting breakpoints at source lines (e.g., line 3, int a = input + 1) or at 
class declarations.  (e.g., line 1).  (I have not used the class version, so I 
am only assuming that the previous owner implemented it correctly.)

Can you clarify at which line you are setting the breakpoint?  If it works for 
you as described above, I will update the documentation to be clearer that you 
cannot set a breakpoint at a method declaration.

Original comment by udalrich.schermer on 9 Jan 2011 at 2:21

GoogleCodeExporter commented 9 years ago
Ah, I was attempting to set a breakpoint at line 2. Thanks.

Original comment by jason.t...@gmail.com on 9 Jan 2011 at 2:48

GoogleCodeExporter commented 9 years ago
Need to update docs to be clear that setting a breakpoint on a method 
declaration does not work.

Original comment by udalrich.schermer on 9 Jan 2011 at 4:17

GoogleCodeExporter commented 9 years ago
Resolved in revision 474 in 0.5 branch.

Original comment by udalrich.schermer on 12 Apr 2011 at 3:10

GoogleCodeExporter commented 9 years ago

Original comment by udalrich.schermer on 12 Apr 2011 at 3:29