You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by J F <jn...@hotmail.com> on 2021/08/11 21:58:12 UTC

NetBeans Version 12 - attaching to an existing process.

There is both a C process and Java process running on Linux.

I have some (not all) of the source code for each.

Is it possible to use NetBeans 12.x to attach to these external C and Java processes and have it break on any breakpoints set within any of the modules that I currently have?

All notes seem outdate and even YouTube videos are outdated.

It appears I am able to attach to the various processes (via the PID) but it doesn't recognize or stop on any of the break-points.

I even tried attaching via the JPDA for the Java process after adding "-agentlib:jdwp=transport=dt_socket,server=y,address=8899" but that didn't help either.

Is there a note describing how to attach to a currently executing process and have it break on the code within NetBeans?