This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 9878 - attaching to a process running jpda in server mode breaks debugger
Summary: attaching to a process running jpda in server mode breaks debugger
Status: CLOSED INVALID
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 3.x
Hardware: Other Linux
: P1 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-02-27 23:31 UTC by Henry Story
Modified: 2002-07-19 15:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Story 2001-02-27 23:31:43 UTC
Hi, I tried attaching to an enhydra process which I had started with the 
following command line options:
"-debug -java-arg 
-Xrunjdwp:transport=dt_socket,address=7005,server=y,suspend=y"
(The enhydra script adds all the other necessary debugger option as specified 
in the jpda documentation).

As I understand this, enhdra should stop immediately on startup and wait for 
the debugger to connect. When the debugger does connect, in the latest dev 
releases, the editor display breaks up, and it shows many cursor location 
flashing all over. 

I was not able to get this to work even with the last stable netbeans release.

(http://www.enhydra.org)
Comment 1 Henry Story 2001-02-27 23:46:03 UTC
I forgot to mention that I tried both jdk1.3 from blackdown and from sun, as 
well as the jdk1.3.1 beta from sun.
Comment 2 Henry Story 2001-02-28 00:54:32 UTC
I tried the same thing on a 1 class program. In this case after I attach to 
the process with the debugger nothing happens. If I then look at the debugger 
window, and try to see what is happening to the threads, the debugger 
(netbeans) freezes. It unfreezes as soon as I kill the process it was 
attempting to attach to.

bash>java -Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,address=7005,server=y,suspend=y 
tools.util.http.Get http://www.google.com

I found that the problem with the editor described in the original message of 
this thread, persisted even when I was not debugging. I have cleaned up my 
setup and am starting from scratch. Perhaps this was related to moving from 
dev build 132 to 134...  

Comment 3 Jan Stola 2001-03-01 08:53:59 UTC
JDK 1.3 and 1.3.1 have problems with debugging on Hotspot VM and that
is the problem you encounter. I was able to reproduce what you
described when launching the debuggee in Hotspot VM. When I was
launching it in Classic VM everything works fine.
So, add -classic to your command line:
java -classic -Xdebug <the rest of commnad line>.
Comment 4 Jan Stola 2001-03-01 08:54:33 UTC
Invalid -> closed.