I have two projects: consle and android project. I want to compare the values of variables because the same code (as I think) gives different results. I have to find the error. If I press the F6 button the state changes just in one project. Is it possible to switch the debugging project on the fly?
Start debug session. When the breakpoint in run is hit, you can go to another breakpoint, enable that breakpoint if it was disabled. Then right click on the breakpoint -> go to Filters, now you can select the thread you want the breakpoint to be remain enabled for and you can uncheck the rest of the threads.
If you are working in a team, you might want to share your run/debug configurations so that your teammates could run the application using the same configuration or enable them to remotely attach to the process you are running.
Now go to File > Import... and select "Projects from Folder or Archive" option under the General section. Click on Directory and choose the folder "Test" which is the one that we want to hold multiple java projects. Click on Finish.
Put breakpoints in both projects and launch them in debug mode.
Switch to "Debug" perspective and find "Debug" view there. You will see a list of active debug sessions with their respective call stacks. You can click on every debug step of every debug session and Eclipse will open that step in code editor. "Variables" view will also be updated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With