I am trying to figure out how to hot deploy and debug an application with Apache Netbeans 12. I have JBoss installed and I can set breakpoints and stop on them if I manually deploy my EAR to the JBoss deployment directory then attach the IDE to the running process. However with this method, I am unable to see into the variables (get message "Variable information is not available, source compiled without -g option. Value of "myVar" is not known."). I can only stop and step through the code. I'm using Maven to build if that makes a difference. I'd like to select the project I want to debug and have it deploy the EAR from the deployment project and run it on the configured JBoss instance.
My project layout is something like this:
- deployment <-- maven builds/packages the EAR here
So I can't figure out how to tie the jar built in say proj1 to the EAR built in deployment. If I try to debug proj1 it will attempt to deploy the proj1 jar to my JBoss instance which will fail because of the missing dependencies. In summary:
1. I can manually deploy my EAR and attach say proj1 to the running instance and stop/step through the program but not see the variables
2. I can select proj1 for debug and have it deploy the proj1 jar to the configured JBoss instance but it will fail because it's missing all of the dependencies from the other projects
Alternatively, I'd be happy deploying the EAR manually and attaching the debugger if I could see the contents of the variables.
Building in Netbeans with these options