I'm an emacs/jde rookie. I've installed all the packages as indicated in
the installation and it uns perfectly, except that I'm having trouble
with the JDE debugger setup - it seems to be ignoring the breakpoints
I've set, even though it says that it's there in the output. I've
included errormsg.txt which has the dump of the error message and my
.emacs fiel, along with the following info:
System: RedHat 7.1
Emacs 20.7.1
jdk1.3.1_01
jde 2.2.8
elib 1.0
semantic 1.4 beta 11
speedbar 0.14 beta 1
eieio 0.17 beta 3
Any help (or pointing out where I've overlooked the answer in the
FAQ<g>) would be greatly appreciated.
Thanks,
Michael E.
*** Debugger Output for Process com.vykor.gpfadvisor.GPFAdvisor(5) ***
Debugger waiting for Emacs to connect to app SIO port 36627.
Launch command line:
java com.vykor.gpfadvisor.GPFAdvisor
Emacs connected to standard IO port 36627 for process com.vykor.gpfadvisor.GPFAdvisor.
Launched VM Java Debug Interface (Reference Implementation) version 1.3
Java Debug Wire Protocol (Reference Implementation) version 1.0
JVM Debug Interface version 1.0
JVM version 1.3.1_01 (Java HotSpot(TM) Client VM, interpreted mode)
initSIOConnect: starting standard I/O handshake.
initSIOConnect: starting SIO connect thread.
vm started...
All threads suspended...
Setting breakpoint at line 667 in GPFAdvisor.java.
Debugger connected to standard I/O socket.
Running com.vykor.gpfadvisor.GPFAdvisor.
Closed transport for application's standard error output.
Closed transport for application's standard output.
com.vykor.gpfadvisor.GPFAdvisor process ended.
vm disconnected...
;; Red Hat Linux default .emacs initialization file
;; Are we running XEmacs or Emacs?
;;(defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
;; Set up the keyboard so the delete key on both the regular keyboard
;; and the keypad delete the character under the cursor and to the right
;; under X, instead of the default, backspace behavior.
(global-set-key [delete] 'delete-char)
(global-set-key [kp-delete] 'delete-char)
;; Turn on font-lock mode for Emacs
;;(cond ((not running-xemacs)
;; (global-font-lock-mode t)
;;))
;; Always end a file with a newline
(setq require-final-newline t)
;; Stop at the end of the file, not just add lines
(setq next-line-add-newlines nil)
;; Enable wheelmouse support by default
;;(require 'mwheel)
;;(custom-set-variables)
;;(custom-set-faces
;; '(default ((t (:size "18pt" :family "Lucida"))) t))
(add-hook 'c++-mode-hook '(lambda() (c-set-style "ellemtel")))
;; This .emacs file illustrates the minimul setup
;; required to run the JDE.
;; Set the debug option to enable a backtrace when a
;; problem occurs.
(setq debug-on-error t)
(defun my-java-mode-hook()
"Hook for running Java file..."
(message "Loading my-java-hook...")
;;don't indent braces
(c-set-offset 'substatement-open 0))
(add-hook 'java-mode-hook 'my-java-mode-hook)
;; Update the Emacs load-path to include the path to
;; the JDE and its require packages. This code assumes
;; that you have installed the packages in the emacs/site
;; subdirectory of your home directory.
(add-to-list 'load-path "~/eieio-0.17beta3")
(add-to-list 'load-path "~/speedbar-0.14beta1")
(add-to-list 'load-path "~/semantic-1.4beta11")
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/elib")
(add-to-list 'load-path "~/jde-2.2.8/lisp")
;; If you want Emacs to defer loading the JDE until you open a
;; Java file, edit the following line
(setq defer-loading-jde t)
;; to read:
;;
;; (setq defer-loading-jde t)
;;
(if defer-loading-jde
(progn
(autoload 'jde-mode "jde" "JDE mode." t)
(setq auto-mode-alist
(append
'(("\\.java\\'" . jde-mode))
auto-mode-alist)))
(require 'jde))
;; Sets the basic indentation for Java source files
;; to two spaces.
(defun my-jde-mode-hook ()
(setq c-basic-offset 4))
(add-hook 'jde-mode-hook 'my-jde-mode-hook)
;; Include the following only if you want to run
;; bash as your shell.
;; Setup Emacs to run bash as its primary shell.
(setq shell-file-name "bash")
(setq shell-command-switch "-c")
(setq explicit-shell-file-name shell-file-name)
(setenv "SHELL" shell-file-name)
(setq explicit-sh-args '("-login" "-i"))
(custom-set-variables
'(jde-gen-k&r nil)
'(jde-bug-jdk-directory "/usr/local/jdk1.3.1_01/")
'(jde-compile-option-classpath (quote ("~/development/junit3.7/junit.jar"
"~/development/vykor/src/java")))
'(jde-db-source-directories (quote ("~/development/vykor/src/java"
"/usr/local/jdk1.3.1_01" "~/development/vykor/src/java/com/vykor/gpfadvisor")))
'(jde-db-debugger (quote ("JDEbug" "" . "Executable")))
'(jde-run-option-classpath (quote ("~/development/junit3.7/junit.jar"
"~/development/vykor/src/java")))
'(jde-enable-abbrev-mode t)
'(jde-bug-vm-includes-jpda-p t))
(custom-set-faces)