Hello, JDE mailing list,
I'm having a little trouble with JDEbug. Basically,
it won't allow me
to step through even the simplest "hello world" Java
program. The
debugger seems to start correctly, and I can launch a
process for my
Java program, but I can't step through it or see local
variables, and
when I try to do anything else (set additional
breakpoints, finish the
process, etc.) I often get error messages. Any ideas
as to why I'm
having this problem? Or at least, is there somewhere
else I should
direct my question? Is it really a problem? Could I
be using it
incorrectly? Thanks!
Sincerely,
David A. Ventimiglia
[EMAIL PROTECTED]
Host platform: RedHat Linux 6.1
JDE version: 2.2.3
Emacs version: 20.5.1
Problem description: JDEbug doesn't work correctly.
Details: JDEbug doesn't appear to honor the
breakpoints I've placed.
Furthermore, when trying to stop a process, and
sometimes when
starting one, the bottom window often displays error
messages such as,
"Error: debugger unable to terminate: HelloWorld".
I've checked that
I have a current version of JDE (I do, 2.2.3) and a
current version of
the JDK (I do, 1.3). I *believe* I installed JDE
correctly and I
*suspect* that my problem is in the way JDEbug is
configured.
Steps:
1. Open HelloWorld.java into a buffer-->success
2. Compile HelloWorld.java-->success
3. Run HelloWorld-->success
4. Choose JDEbug->Set breakpoint from menu for line
6-->success
5. Choose JDEbug->Processes->Start Debugger-->success
6. Choose JDEbug->Processes->Launch Process-->screen
splits into 3
windows, but the middle window doesn't display local
variable "foo".
Also, the bottom window doesn't indicate that the
debugger has arrived
at the breakpoint. Lastly, none of the "step"
commands (Step Over,
Step Into, etc.) on the JDEbug menu are enabled. It's
at this point
that the debugger doesn't seem to be working
correctly.
7. Choose JDEbug->Processes->Finish Process-->Emacs
freezes for
several seconds, but command *appears* to be
successful.
8. Choose JDEbug->Processes->Remove Dead
Processes-->success
Sample debug buffer:
*** Debugger Output for Process HelloWorld(3) ***
Launch command line:
java -classpath
/home/dventimi/work/dev/java/classes:$JAVA_HOME/lib/tools.jar
HelloWorld
Emacs connected to standard IO port 1280 for process
HelloWorld.
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.0beta_refresh (Java HotSpot(TM) Client
VM, interpreted mode)
initSIOConnect: starting standard I/O handshake.
initSIOConnect: starting SIO connect thread.
Debugger waiting for Emacs to connect to app SIO port
1280.
Debugger connected to standard I/O socket.
vm started...
All threads suspended...
Running HelloWorld.
Error: debugger unable to terminate: HelloWorld.
Reason:
Please enter the details of your bug report here
Emacs : GNU Emacs 20.5.1 (i386-redhat-linux-gnu, X
toolkit)
of Mon Feb 21 2000 on porky.devel.redhat.com
Package: JDE version 2.2.3
current state:
==============
(setq
jde-gen-session-bean-template
'("(jde-wiz-insert-imports-into-buffer (list
\"javax.ejb.*\"\n\"java.rmi.RemoteException\"))"
"(jde-wiz-update-implements-clause \"SessionBean\")"
"'> \"public void ejbActivate() throws RemoteException
{\"'n> \"}\"'n\n'n" "'> \"public void ejbPassivate()
throws RemoteException {\"'n> \"}\"'n\n'n" "'>
\"public void ejbRemove() throws RemoteException
{\"'n> \"}\"'n 'n" "'> \"public void
setSessionContext(SessionContext ctx)
throws\nRemoteException {\"" "'n> \"}\"'n 'n" "'>
\"public void unsetSessionContext() throws
RemoteException {\"'n>\n\"}\"'n 'n")
jde-gen-beep '("(end-of-line) '&"
"\"Toolkit.getDefaultToolkit().beep();\"'>'n'>")
jde-which-method-format '(" ["
jde-which-method-current "]")
jde-run-classic-mode-vm nil
jde-javadoc-gen-nodeprecatedlist nil
jde-imenu-include-classdef t
jde-javadoc-gen-link-online nil
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/