Hi,

there is a slight problem in the debugger with watches.
A watch expression that has the 'View toString()'  flag checked causes an
Internal Error when the debugger is started.

Stack trace:
[ 207562]  ERROR -          com.intellij.util.g.e -
[ 207562]  ERROR -          com.intellij.util.g.e - IntelliJ IDEA (Ariadna)
3.0  Build #628
[ 207562]  ERROR -          com.intellij.util.g.e - JDK: 1.3.1_03
[ 207562]  ERROR -          com.intellij.util.g.e - VM: Java HotSpot(TM)
Client VM
[ 207562]  ERROR -          com.intellij.util.g.e - Vendor: Sun Microsystems
Inc.
[ 207578]  ERROR -          com.intellij.util.g.e - OS: Windows 2000
[ 207578]  ERROR -          com.intellij.util.g.e -
com.sun.jdi.VMDisconnectedException: Socket closed
        at com.sun.tools.jdi.TargetVM.send(TargetVM.java:255)
        at
com.sun.tools.jdi.VirtualMachineImpl.sendToTarget(VirtualMachineImpl.java:68
6)
        at com.sun.tools.jdi.PacketStream.send(PacketStream.java:39)
        at
com.sun.tools.jdi.JDWP$ThreadReference$Frames.enqueueCommand(JDWP.java:3679)
        at
com.sun.tools.jdi.JDWP$ThreadReference$Frames.process(JDWP.java:3655)
        at
com.sun.tools.jdi.ThreadReferenceImpl.frames(ThreadReferenceImpl.java:309)
        at
com.sun.tools.jdi.ThreadReferenceImpl.frame(ThreadReferenceImpl.java:274)
        at com.intellij.debugger.k.a(k.java:1)
        at com.intellij.debugger.d.a.bh.k(bh.java:57)
        at com.intellij.debugger.d.k.o(k.java:31)
        at com.intellij.debugger.c.m.a(m.java:26)
        at com.intellij.debugger.d.a.a.j.q(j.java:16)
        at com.intellij.debugger.d.a.a.j.r(j.java:75)
        at com.intellij.debugger.d.a.a.j.n(j.java:93)
        at com.intellij.debugger.d.a.a.n.b(n.java:29)
        at com.intellij.debugger.d.a.bk.a(bk.java:66)
        at com.intellij.debugger.d.bm.b(bm.java:17)
        at com.intellij.util.g.g.run(g.java:2)
        at java.lang.Thread.run(Thread.java:479)
[ 207578]  ERROR - intellij.plugins.PluginManager -
[ 207578]  ERROR - intellij.plugins.PluginManager - IntelliJ IDEA (Ariadna)
3.0  Build #628
[ 207578]  ERROR - intellij.plugins.PluginManager - JDK: 1.3.1_03
[ 207578]  ERROR - intellij.plugins.PluginManager - VM: Java HotSpot(TM)
Client VM
[ 207594]  ERROR - intellij.plugins.PluginManager - Vendor: Sun Microsystems
Inc.
[ 207594]  ERROR - intellij.plugins.PluginManager - OS: Windows 2000
[ 207594]  ERROR - intellij.plugins.PluginManager -
java.lang.RuntimeException: Socket closed
        at com.intellij.util.g.g.run(g.java:9)
        at java.lang.Thread.run(Thread.java:479)


Code to reproduce:

public class Test {
    Object obj = null;

    public static void main(String[] args) {
        Test t = new Test();
        t.obj = new Object();

[X]   String s = t.obj.toString();
        System.out.println("s = " + s);
    }
}

[X] = breakpoint


1. Start the debugger with the breakpint set
2. Add the expression "t.obj" to the watches
3. Set the 'View toString' flag
4. Stop the debugger
5. Start debugger -> Internal Error occurred

--
Sascha Weinreuter



_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to