[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
a problem about debugging java program
From: |
Lei Guo |
Subject: |
a problem about debugging java program |
Date: |
Tue, 29 Oct 2002 21:34:23 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827 |
when I use ddd to debug java program, I type the following command:
ddd --jdb &
then click the menu "File|Open class", the window that ddd pops showing
nothing (see attachment). If I type
ddd --jdb Test &
ddd pop a window showing:
Cannot access class "Test"
and the source window is blank. But in the JDB console ( the bottom
window in ddd GUI) showing:
GNU DDD 3.3.1 (i386-redhat-linux-gnu), by Dorothea Lütkehaus and Andreas
Zeller.
Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
Copyright © 1999-2001 Universität Passau, Germany.
Initializing jdb ...
> load Test
>
I can click menu "File|Open Source" to open the code and set break
point, and I can use the command tool buttons such as run, step, next,
etc. But when I debugging the program, there is no excution position
arrow in source code window, and the "display" button (to show data in
the data window) does not work, I have to use the "print" button.
"watch" button does not work either. It is no problem to type jdb
command in the jdb console. Another words, it seems only jdb is working,
not ddd. Who can tell me what should I do?
Thank you very much!
My OS, ddd, and java version:
OS: red hat 7.3 linux, kernel 2.4.18
ddd version: 3.3.1
java version: j2sdk 1.4.0
--
--------------------------------------------------------
Lei Guo
College of William and Mary Office: M-S Hall 101C
Department of Computer Science Phone: (757)221-3468(O)
P.O. Box 8795 (757)259-9683(H)
Williamsburg, VA 23187-8795 Email: address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- a problem about debugging java program,
Lei Guo <=