udalrich / jdibug

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

unable to set up breakpoint #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. configure jdibug the standard way.
2. as I don't use JDEE, set jdibug-use-jde-source-paths to 'nil' and set the 
jdibug-source-paths to your (I'm using Maven so the value is 
'("~/project1/src/main/java" "~/project1/src/test/java")
3. Try to add breakpoint using 'jdibug-toggle-breakpoint' in the buffer with 
java source code

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

I expect breakpoint to be set; instead I'm getting 'Symbol's function 
definition is void: getfoo'.

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

jdibug-0.5, running on Ubuntu 12.10 linux (Emacs 24).

Please provide any additional information below.

I'm attaching compiled distribution for you to test if you also see the similar 
behaviour. Any reply will be very much appreciated!

Original issue reported on code.google.com by coquelic...@gmail.com on 13 Feb 2013 at 3:41

GoogleCodeExporter commented 9 years ago
After some hours of debugging jdibug _and_ eieio (from CEDET) have the 
following information: (maybe it will help someone who knows more about elisp 
than me)

 * getfoo is mentioned in eieio.el file,
 * the error message is displayed when trying to execute this method (from jdibug-ui.el):

>>>> CUT <<<<
...
(defmethod set-breakpoint ((bp jdibug-breakpoint) &optional vm-list class)
  "Set the breakpoint BP.  If VM-LIST, only set it in those
virtual machines.  If CLASS, use that class instead of the one
based on the file name."

  (jdibug-debug "set-breakpoint %s %s" (object-class-name bp) vm-list)
  (setf (jdibug-breakpoint-status bp) 'unresolved)
  (unless (memq bp (breakpoint-list bp))
->   (push bp (breakpoint-list bp)))
...
>>>> CUT <<<<

when running the debugger, evaluating (breakpoint-list bp) returns 'nil'.

Any ideas are appreciated!

Original comment by coquelic...@gmail.com on 14 Feb 2013 at 11:40