How can I debug two projects at the same time in eclipse?

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 a mistake. If I press the F6 button, the state will change in only one project. Is it possible to switch the debugging project on the fly?

+6
source share
5 answers

Place breakpoints in both projects and run them in debug mode.

Go to "Debug" and find "Debug". You will see a list of active debugging sessions with their respective call stacks. You can click each debug step of each debug session, and Eclipse will open this step in the code editor. The "Variables" view will also be updated.

+12
source
  • Run both projects
  • Open console window
  • On the right in the console window there is a button that says "Show selected console"
  • Switch between your project console windows
+1
source

In a single instance of Eclipse, you cannot start two processes at once.
You can have two eclipses for each project.

For Android development, here is the debug documentation: http://developer.android.com/tools/debugging/index.html

-1
source

Open two instances of Eclipse, the only way.

The following link may help -

Is it possible to run 2 fully independent Eclipse instances at the same time?

-1
source

this is impossible to do.

Perhaps you should use Debug Log , as you say, the code is the same, then the log output should be the same.

Using Debug (F6) is usually inefficient.

-2
source

Source: https://habr.com/ru/post/952334/


All Articles