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.
Summary: | NetBeans 9 Attach Debugger does not work when Java Platform and process are JDK9 | ||
---|---|---|---|
Product: | debugger | Reporter: | Martin Balin <mbalin> |
Component: | Java | Assignee: | Martin Entlicher <mentlicher> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | tzezula, wetmore |
Priority: | P2 | Keywords: | JDK_9 |
Version: | Dev | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Martin Balin
2016-09-16 08:38:15 UTC
Reproduced. But we can not do anything about it in NetBeans. It looks like you need to use consistent address specification to be able to connect. To verify the debugger attach behavior: In terminal 1 run: % D:/java/bootdirs/jdk1.8.0_101/bin/java \ -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5900 \ -jar "C:/Users/brw.ORADEV/Documents/NetBeansProjects/FileTest/dist/FileTest.jar" In terminal 2 run: % D:/java/bootdirs/jdk1.8.0_101/bin/jdb -attach <my-hostname>:5900 It connects and waits for debug commands. Write quit to close the debugger. Now in Terminal 1 run: % D:/java/ws/dev/build/windows-x86_64-normal-server-fastdebug/jdk/bin/java \ -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5900 \ -jar "C:/Users/brw.ORADEV/Documents/NetBeansProjects/FileTest/dist/FileTest.jar" In terminal 2 run: % D:/java/bootdirs/jdk1.8.0_101/bin/jdb -attach <my-hostname>:5900 OR % D:/java/ws/dev/build/windows-x86_64-normal-server-fastdebug/jdk/bin/jdb \ -attach <my-hostname>:5900 In both cases it fails. In the same way how NetBeans fails. => It's not a NetBeans bug. When you use consistent address specification it works with both jdb and NetBeans. Like: -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5900 Host: <blank> Port: 5900 -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=<My_hostname>:5900 Host: <My_hostname> Port: 5900 |