You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a breakpoint for an android application classes-by-signature
returned nothing.
It seems that it requires the full package and class name to find something.
So toggling a breakpoint always ended with 'JDIbug setting
breakpoint...pending' instead of ...done. Using this function made it work for
me. (with borrowed code from jde to get package name)
(defun jdibug-source-file-to-class-signature (source-file)
"Converts a source file to a JNI class name."
(let ((buf source-file)
(packages (semantic-brute-find-tag-by-class 'package (current-buffer)))
(class-name (file-name-sans-extension
(file-name-nondirectory (buffer-file-name)))))
(when (and (listp packages) (eq (length packages) 1))
(setf buf (concat (semantic-tag-name (car packages)) "." class-name))
(setf buf (jdi-class-name-to-class-signature buf)))
(jdibug-trace "jdi-source-to-class-signature : %s -> %s" source-file buf)
buf))
(I'm pretty much beginner with elisp (and java), so there are probably other
issues the above code)
Original issue reported on code.google.com by hannes.j...@googlemail.com on 15 Oct 2011 at 1:08
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
hannes.j...@googlemail.com
on 15 Oct 2011 at 1:08The text was updated successfully, but these errors were encountered: