Hi Stephen,

JDK 1.3 introduces a new version of jdb (based on JPDA) with a new
command-line interface that the JDE does not understand. I do not intend to
update the JDE to support the new jdb, at least not anytime soon, because
the JDE includes its own JPDA-based debugger, called JDEbug, that is far
superior to jdb in functionality. I suggest that you use JDEbug. If you
want to use jdb, use the old version. It is included in the JDK 1.3 bin
directory under the name oldjdb.

- Paul




At 12:57 PM 12/15/99 -0600, Stephen Bailey wrote:
>Paul,
>
>I must be doing something stupid, but I can't find any information on
>what that stupid might be.
>
>I'm using JDK 1.3 beta, NT 4.0 SP 6.  I have a trivial Java
>application:
>
>  class SillyTest 
>  {
>    public static void main(String[] args)
>    {
>        System.out.println("I'm here!");
>    }
>  }
>
> When I try to debug this application by selecting
>``Jde->Debug App'', I have what appears to be the same problem as
>described in:
>http://www.cs.washington.edu/homes/voelker/ntemacs/mail/archive_index/3820.
html
>on 19-Oct-1999.
>
>Which basically says:
>
>  Hi,
>
>  When I use 'debug' in JDE, the debugger seems to hang. Only C-c C-c
>  releases it.
>
>  This does not happen when I open a shell buffer and run jdb in it, jdb
>  works properly.
>
>
>  I am using Gnu Emacs 20.4.1, JDE 2.1.5
>
>  Any ideas?
>
>  below is my .emacs file
>
>  Thanks,
>
>  Youval
>
>I have noticed that when I do C-c C-c, it does say that it's hit my
>breakpoint.  The complete dump of what appears in the debugger window
>is below.  It gets up to the line:
>
>  VM Started: Set deferred breakpoint request SillyTest:5
>
>And hangs until I C-c C-c.
>
>So wot am I doing wrong?
>
>Thanks,
>  Steph
>--------------------------------------------------------------------
>cd d:/users/steph/overx/java/test/
>jdb -classpath . SillyTest
>
>Initializing jdb...
>> Deferring breakpoint SillyTest.main.
>It will be set after the class is loaded.
>> run SillyTest
>Java(TM) HotSpot Client VM warning: Setting of property "java.compiler" is 
>ignored
>> 
>VM Started: Set deferred breakpoint request SillyTest:5
>
>Stopped at line 166 in ), line=5, bci=0
>  5         System.out.println("I'm here!");
>
>main[1] Full thread dump:
>
>"Signal Dispatcher" daemon prio=10 tid=0x767100 nid=0x133 waiting on monitor 
>[0..0]
>
>"JDWP Command Reader" daemon prio=5 tid=0x7668a0 nid=0x141 runnable [0..0]
>
>"JDWP Event Helper Thread" daemon prio=5 tid=0x7665f0 nid=0x153 waiting on 
>monitor [0..0]
>
>"JDWP Transport Listener: dt_shmem" daemon prio=5 tid=0x766340 nid=0x139 
>waiting on monitor [0..0xd0ffb4c]
>
>"Finalizer" daemon prio=9 tid=0x7646d0 nid=0x10e waiting on monitor 
>[0x909f000..0x909fddc]
>       at java.lang.Object.wait(Native Method)
>       at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112)
>       at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
>       at java.lang.ref.Finalizer.java
>
>"Reference Handler" daemon prio=10 tid=0x763870 nid=0x137 waiting on monitor 
>[0x905f000..0x905fddc]
>       at java.lang.Object.wait(Native Method)
>       at java.lang.Object.wait(Object.java:424)
>       at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
>
>"main" prio=5 tid=0x761390 nid=0x151 suspended [0x6f000..0x6fc64]
>       at SillyTest.main(SillyTest.java:5)
>
>"VM Thread" prio=5 tid=0x763ae0 nid=0x111 runnable 
>
>"VM Periodic Task Thread" prio=10 tid=0x766b40 nid=0x11c waiting on monitor 
>Full thread dump:
>
>"event-handler" prio=5 tid=0x77db60 nid=0x15e waiting on monitor 
>[0x945f000..0x945fddc]
>       at java.lang.Object.wait(Native Method)
>       at java.lang.Object.wait(Object.java:424)
>       at com.sun.tools.jdi.EventQueueImpl.removeUnfiltered(EventQueueImpl.java:175)
>       at com.sun.tools.jdi.EventQueueImpl.remove(EventQueueImpl.java:92)
>       at com.sun.tools.jdi.EventQueueImpl.remove(EventQueueImpl.java:78)
>       at com.sun.tools.example.debug.tty.EventHandler.run(EventHandler.java:71)
>       at java.lang.Thread.run(Thread.java:479)
>
>"output reader" prio=9 tid=0x770bb0 nid=0x143 runnable [0x941f000..0x941fddc]
>       at java.io.FileInputStream.readBytes(Native Method)
>       at java.io.FileInputStream.read(FileInputStream.java:187)
>       at java.io.BufferedInputStream.read1(BufferedInputStream.java:227)
>       at java.io.BufferedInputStream.read(BufferedInputStream.java:285)
>       at java.io.FilterInputStream.read(FilterInputStream.java:97)
>       at java.io.InputStreamReader.fill(InputStreamReader.java:163)
>       at java.io.InputStreamReader.read(InputStreamReader.java:239)
>       at java.io.BufferedReader.fill(BufferedReader.java:137)
>       at java.io.BufferedReader.readLine(BufferedReader.java:276)
>       at java.io.BufferedReader.readLine(BufferedReader.java:341)
>       at 
>com.sun.tools.example.debug.tty.VMConnection.dumpStream(VMConnection.java:216)
>       at 
>com.sun.tools.example.debug.tty.VMConnection.access$000(VMConnection.java:41)
>       at com.sun.tools.example.debug.tty.VMConnection$1.run(VMConnection.java:230)
>
>"output reader" prio=9 tid=0x7708c0 nid=0x152 runnable [0x93df000..0x93dfddc]
>       at java.io.FileInputStream.readBytes(Native Method)
>       at java.io.FileInputStream.read(FileInputStream.java:170)
>       at java.io.InputStreamReader.fill(InputStreamReader.java:163)
>       at java.io.InputStreamReader.read(InputStreamReader.java:239)
>       at java.io.BufferedReader.fill(BufferedReader.java:137)
>       at java.io.BufferedReader.readLine(BufferedReader.java:276)
>       at java.io.BufferedReader.readLine(BufferedReader.java:341)
>       at 
>com.sun.tools.example.debug.tty.VMConnection.dumpStream(VMConnection.java:216)
>       at 
>com.sun.tools.example.debug.tty.VMConnection.access$000(VMConnection.java:41)
>       at com.sun.tools.example.debug.tty.VMConnection$1.run(VMConnection.java:230)
>
>"JDI Target VM Interface" prio=5 tid=0x77a470 nid=0x120 runnable 
>[0x939f000..0x939fddc]
>       at com.sun.tools.jdi.SharedMemoryConnection.receivePacket0(Native Method)
>       at 
>com.sun.tools.jdi.SharedMemoryConnection.receivePacket(SharedMemoryConnectio
>n.java:73)
>       at com.sun.tools.jdi.TargetVM.run(TargetVM.java:108)
>       at java.lang.Thread.run(Thread.java:479)
>
>"JDI Internal Event Handler" prio=5 tid=0x779100 nid=0x156 waiting on 
>monitor [0x935f000..0x935fddc]
>       at java.lang.Object.wait(Native Method)
>       at java.lang.Object.wait(Object.java:424)
>       at com.sun.tools.jdi.EventQueueImpl.removeUnfiltered(EventQueueImpl.java:175)
>       at com.sun.tools.jdi.EventQueueImpl.removeInternal(EventQueueImpl.java:111)
>       at com.sun.tools.jdi.InternalEventHandler.run(InternalEventHandler.java:48)
>       at java.lang.Thread.run(Thread.java:479)
>
>"Signal Dispatcher" daemon prio=10 tid=0x7667f0 nid=0x138 waiting on monitor 
>[0..0]
>
>"Finalizer" daemon prio=9 tid=0x764550 nid=0x8f waiting on monitor 
>[0x909f000..0x909fddc]
>       at java.lang.Object.wait(Native Method)
>       at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112)
>       at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
>       at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:166)
>
>"Reference Handler" daemon prio=10 tid=0x763d40 nid=0xdf waiting on monitor 
>[0x905f000..0x905fddc]
>       at java.lang.Object.wait(Native Method)
>       at java.lang.Object.wait(Object.java:424)
>       at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
>
>"main" prio=5 tid=0x761370 nid=0x109 initialized [0x6f000..0x6fc64]
>       at java.io.FileInputStream.readBytes(Native Method)
>       at java.io.FileInputStream.read(FileInputStream.java:187)
>       at java.io.BufferedInputStream.read1(BufferedInputStream.java:227)
>       at java.io.BufferedInputStream.read(BufferedInputStream.java:285)
>       at java.io.FilterInputStream.read(FilterInputStream.java:97)
>       at java.io.InputStreamReader.fill(InputStreamReader.java:163)
>       at java.io.InputStreamReader.read(InputStreamReader.java:239)
>       at java.io.BufferedReader.fill(BufferedReader.java:137)
>       at java.io.BufferedReader.readLine(BufferedReader.java:276)
>       at java.io.BufferedReader.readLine(BufferedReader.java:341)
>       at com.sun.tools.example.debug.tty.TTY.<init>(TTY.java:593)
>       at com.sun.tools.example.debug.tty.TTY.main(TTY.java:876)
>
>"VM Thread" prio=5 tid=0x763760 nid=0x14d runnable 
>
>"VM Periodic Task Thread" prio=10 tid=0x7664b0 nid=0x148 waiting on monitor 

Reply via email to