You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Blake McBride <bl...@gmail.com> on 2022/08/28 15:07:20 UTC

Can't attach to a debug process on Java 17

Greetings,

I am using NetBeans 15-rc4 on Fedora Linux.  I see the same problem under
NetBeans 14.

I have been debugging my Java app by attaching to a process under Java 8
with no problem. I upgraded my app and system to Java 17. I can no longer
attach to the process. NetBeans says, "Connection refused." Interestingly,
IntelliJ can attach to the process, so I know it is something to do with
NetBeans and Java 17.

When I try to attach to the process with NetBeans, I select:

Debugger: Java Debugger (JPDA)
Connector: SocketAttach (Attaches by socket to other VMs)
Transport: dt_socket
Host: i9-tower
Port: 9090
Timeout [ms]: [blank]

These are the same parameters I used with Java 8 that worked fine.

Any suggestions?

Thanks!

Blake McBride