Netbeans debugs two projects at the same time

I am trying to debug two projects at the same time in Netbeans and I am having some problems. One project calls another. I first run this using debug mode. In the second one, I put some breakpoints. The process stops at a breakpoint, but when you press the button to go to the next step, go to the next breakpoint (if any) or execute the code at the end.

This begs the question: what if netbeans goes to the next step in this case?

I am using netbeans 7.2 on Windows 7 and am debugging Java code using jdk1.6.0_24.

+3


source to share


2 answers


Netbeans 8 should support this off-the-shelf product and generate a new jpda.address port for each application.

If not, you have several options for this:



1. Start multiple instances of NetBeans (makes sure the "userdir" is different for both).

2. Specify another jpda.address=<port>

for one of the applications. You can add it to the Project Properties

> Actions

> Debug

> Set Properties

.

+1


source


You can start debugging as many projects as you like at the same time. Look then in Window / Debugging / Sessions which will open the view with all current sessions, you can also change the current one in that view.



0


source







All Articles