> I don't understand your question. JDEBug uses the Threads
> buffer to displays information about all the threads of the
> target process. The information is displayed as an expandable
> thread tree.
>
When I debug this simple program (which I have compiled with -g)
public class HelloWorld
{
public HelloWorld()
{
System.out.println("stdout: Hello World!");
System.err.println("stderr: Hello World!");
}
public static void main(String[] args)
{
HelloWorld helloWorld = new HelloWorld(); // Breakpoint here
}
} // HelloWorld
and switch to the threads buffer, it is empty...
The Process buffer contains this
*** Debugger Output for Process HelloWorld(24) ***
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 (HotSpot VM, 1.0.1, interpreted mode, build f)
vm started...
All threads suspended...
Launching vm to run HelloWorld
Setting breakpoint at line 11 in HelloWorld.java.
Setting breakpoint at line 10 in HelloWorld.java.
Running HelloWorld.
Resolved breakpoint set in HelloWorld.java at line 11.
Breakpoint hit at line 11 in HelloWorld (HelloWorld.java) on thread
main. All threads suspended.
The *JDebug* buffer contains this
JDE> -1 190 launch 26 -vmexec java -classpath / tmp.HelloWorld
(jde-dbo-message
26 "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 (HotSpot VM, 1.0.1, interpreted mode, build f)")
(jde-dbo-command-result 190 55715)
JDE> 26 191 break absolute HelloWorld.java 11
(jde-dbo-event-set
26 "all"
(list "Thread" 1 "main" "unknown" "suspended by debugger")
(list 'jde-dbo-vm-start-event))
(jde-dbo-command-result 191 0)
JDE> 26 192 break absolute HelloWorld.java 10
(jde-dbo-command-result 192 1)
JDE> 26 193 run
(jde-dbo-command-result 193)
(jde-dbo-spec-resolved 26 0)
(jde-dbo-event-set
26 "all"
(list "Thread" 1 "main" "runnable" "suspended at breakpoint")
(list 'jde-dbo-breakpoint-hit-event 0
(list "HelloWorld" "HelloWorld.java" 11) nil nil))
JDE> 26 194 get_locals 1 0
(jde-dbo-command-result
194 (list
(cons (list "args" "java.lang.String[]") (list "java.lang.String[]" 195
nil))))
JDE> 26 195 get_thread 1
(jde-dbo-command-result
195 (list "Thread" 1 "main" "runnable" "suspended at breakpoint"
(list
(list 0 "HelloWorld" "HelloWorld.java" 11))
"VM has no information"
"VM has no information"))
/John
--
LM/ERA/LVA/KD John Olsson mailto:[EMAIL PROTECTED]
Ericsson Radio Systems AB, Box 1248, S-581 12 Linkoping
-------------------------------------------------------------
Phone: +46 13 321070 ECN: 868 1070 Fax: +46 13 287370
-------------------------------------------------------------
I was doing object-oriented assembly when I was 1 year old...
For some reason my mom insists on calling it "Playing with blocks"