bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem using JDEbug, couldn't debug a simple HelloWorld Program


From: Sumeet_Singh
Subject: Problem using JDEbug, couldn't debug a simple HelloWorld Program
Date: Mon, 9 Oct 2000 09:18:17 -0500

Hi,

I'm having problems in JDEbug feature of JDE. After the first breakpoint is
hit, and I hit "continue", the Debugger Hangs, and I get a timout errors
thereafter. I looked the FAQ and changed the jde-bug-raise-frame-p variable
to "off". Still getting the error. Please help.

The details are :
     host platform : Solaris 2.6
     JDE version : JDE 2.0In GNU Emacs 20.4.1 (sparc-sun-solaris2.6, X
     toolkit) of Wed Oct  4 2000 on mars
               configured using `configure  --prefix=/u/ssingh2/emacs'
     Emacs version : Emacs 20.4.1
     Content of my .emacs file :
;; 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)

;; 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.
;; added for JDE
(add-to-list 'load-path (expand-file-name "~/site/jde-2.2.4/lisp"))
(add-to-list 'load-path (expand-file-name "~/site/semantic-1.2.1"))
(add-to-list 'load-path (expand-file-name "~/site/speedbar-0.12"))
(add-to-list 'load-path (expand-file-name "~/site/elib-1.0"))


;; If you want Emacs to defer loading the JDE until you open a
;; Java file, edit the following line
(setq defer-loading-jde nil)
;; 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 2))

;(add-hook 'jde-mode-hook 'my-jde-mode-hook)
(custom-set-variables
 '(jde-compile-option-command-line-args "-g")
 '(jde-bug-jdk-directory "/opt/jdk1.2.2")
 '(jde-db-source-directories (quote ("~/myjava/"
"/view/ssingh2_view1/dvobs/TM-Native" "/view/ssingh2_view1/dvobs/gpm")))
 '(jde-bug-debugger-command-timeout 60)
 '(jde-db-debugger (quote ("JDEbug" "" . "Executable")))
 '(jde-bug-jpda-directory "/u/ssingh2/jpda")
 '(jde-bug-raise-frame-p nil)
 '(jde-bug-debugger-host-address "127.0.0.1")
 '(jde-run-classic-mode-vm t))
(custom-set-faces)

     contents of the *messages* buffer when the error occurred  :
Loading cus-face...
Loading cus-face...done
Loading regexp-opt...
Loading regexp-opt...done
Loading backquote...
Loading backquote...done
Loading wid-browse...
Loading wid-browse...done
Bootstrapping objects...
Bootstrapping objects...done
Loading cl-extra...
Loading cl-extra...done
Loading cl-macs...
Loading cl-macs...done
For information about the GNU Project and its goals, type C-h C-p.
Loading cl-seq...
Loading cl-seq...done
Setting JDE variables to startup values...
Fontifying HelloWorld.java...
Fontifying HelloWorld.java... (regexps.............)
Setting JDE variables to startup values...
Fontifying *scratch*...
Fontifying *scratch*... (regexps............)
HelloWorld.java: [##################################################] ...
done
Loading debug...
Loading debug...done
Entering debugger...
 [2 times]
Breakpoint set at line 16 in class HelloWorld.java.
Breakpoint set at line 21 in class HelloWorld.java.
No response to command 9. (process = 1; timeout = 60 sec.)
No response to command 10. (process = 1; timeout = 60 sec.)
Error: evaluating output from the debugger caused a Lisp error.
Debugger output:
(jde-dbo-event-set
1 "all"
(list "Thread" 1 "main" "runnable" "suspended at breakpoint"
(list
(list 0 "HelloWorld" "HelloWorld.java" 21 "main"))
(list)
nil)
(list 'jde-dbo-breakpoint-hit-event 1
(list "HelloWorld" "HelloWorld.java" 21) nil nil)).
Lisp error: (wrong-type-argument object-p nil)
Attempt to drag leftmost scrollbar [2 times]
Mark set

     Contents of the *JDEbug* buffer if you are having problems with JDEbug
     :
cd /u/ssingh2/myjava/
java -classpath
/u/ssingh2/site/jde-2.2.4/java/src:/u/ssingh2/site/jde-2.2.4/java/lib/jde.jar:/u/ssingh2/jpda/lib/jpda.jar

jde.debugger.Main


(jde-dbo-init-debug-session)

JDE> -1 1 launch 1 -vmexec java -classic  HelloWorld


(jde-dbo-message 1 "VM options: '-classic '")


(jde-dbo-message
1 "Launched VM Java Debug Interface (Reference Implementation) version 1.0
Java Debug Wire Protocol (Reference Implementation) version 1.0
JVM Debug Interface version 1.0
JVM version 1.2.2 (Classic VM, build JDK-1.2.2-001, green threads, nojit)")


(jde-dbo-message 1 "initSIOConnect: starting standard I/O handshake.")


(jde-dbo-message 1 "initSIOConnect: starting SIO connect thread.")


(jde-dbo-command-result 1 46871)


(jde-dbo-message
1 "Debugger waiting for Emacs to connect to app SIO port 46871.")


(jde-dbo-message 1 "Debugger connected to standard I/O socket.")


(jde-dbo-event-set
1 "all"
(list "Thread" 1 "main" "waiting on monitor" "suspended by debugger"
(list)
(list)
nil)
(list 'jde-dbo-vm-start-event))

JDE> 1 2 break absolute HelloWorld.java 16


(jde-dbo-command-result 2 0)

JDE> 1 3 break absolute HelloWorld.java 21


(jde-dbo-command-result 3 1)

JDE> 1 4 run


(jde-dbo-command-result 4)


(jde-dbo-spec-resolved 1 1)


(jde-dbo-spec-resolved 1 0)


(jde-dbo-event-set
1 "all"
(list "Thread" 1 "main" "runnable" "suspended at breakpoint"
(list
(list 0 "HelloWorld" "HelloWorld.java" 16 "main"))
(list)
nil)
(list 'jde-dbo-breakpoint-hit-event 0
(list "HelloWorld" "HelloWorld.java" 16) nil nil))
JDE> 1 5 get_locals 1 0



(jde-dbo-command-result
5 (list
(cons (list "a" "int") (list "int" "15"))
(cons (list "args" "java.lang.String[]") (list "java.lang.String[]" 164
nil))
(cons (list "b" "int") (list "int" "10"))))

JDE> 1 6 get_this 1 0


(jde-dbo-command-result 6 (list "null"))

JDE> 1 7 get_thread 1


(jde-dbo-command-result
7 (list "Thread" 1 "main" "runnable" "suspended at breakpoint"
(list
(list 0 "HelloWorld" "HelloWorld.java" 16 "main"))
(list)
nil))

JDE> 1 8 run


(jde-dbo-command-result 8)


(jde-dbo-event-set
1 "all"
(list "Thread" 1 "main" "runnable" "suspended at breakpoint"
(list
(list 0 "HelloWorld" "HelloWorld.java" 21 "main"))
(list)
nil)
(list 'jde-dbo-breakpoint-hit-event 1
(list "HelloWorld" "HelloWorld.java" 21) nil nil))

JDE> 1 9 get_locals 1 0


(jde-dbo-command-result
9 (list
(cons (list "a" "int") (list "int" "150"))
(cons (list "args" "java.lang.String[]") (list "java.lang.String[]" 164
nil))
(cons (list "b" "int") (list "int" "10"))))

JDE> 1 10 get_this 1 0


(jde-dbo-command-result 10 (list "null"))

     contents of the process buffer was :
*** Debugger Output for Process HelloWorld(1) ***

Launch command line:
  java -classic  HelloWorld

Emacs connected to standard IO port 46871 for process HelloWorld.
VM options: '-classic '
Launched VM Java Debug Interface (Reference Implementation) version 1.0
Java Debug Wire Protocol (Reference Implementation) version 1.0
JVM Debug Interface version 1.0
JVM version 1.2.2 (Classic VM, build JDK-1.2.2-001, green threads, nojit)
initSIOConnect: starting standard I/O handshake.
initSIOConnect: starting SIO connect thread.
Debugger waiting for Emacs to connect to app SIO port 46871.
Debugger connected to standard I/O socket.
vm started...
All threads suspended...
Setting breakpoint at line 16 in HelloWorld.java.
Setting breakpoint at line 21 in HelloWorld.java.
Running HelloWorld.
Resolved breakpoint set in HelloWorld.java at line 21.
Resolved breakpoint set in HelloWorld.java at line 16.
Breakpoint hit at line 16 in HelloWorld (HelloWorld.java) on thread main.
All threads suspended.
Running HelloWorld.

Thanks and best regards,

Sumeet Singh
Member of Technical Staff
Ph   : 972-536-3395
Fax : 972-536-3025




reply via email to

[Prev in Thread] Current Thread [Next in Thread]