eclipse.platform icon indicating copy to clipboard operation
eclipse.platform copied to clipboard

[Debug Variables view] Allow to add columns for other running launches

Open mickaelistria opened this issue 1 year ago • 5 comments

Let's make sure issue is not already fixed in latest builds first.

Suggestion

The goal is to facilitate comparative debugging: I'm the same application from the same project with different options, and I want to more easily compare their execution.

From a fresh installation and clean workspace:

  • Create a .java project with a file
public class Foo {
  public static void main(String[] args) {
     long n = System.currentTimeMillis();
     n++;
  }
}
  • Put a breakpoint on the n++ line
  • Right-click > Debug As > Java application
  • Again, Right-click > Debug As > Java application

I reach state: both processes are stopped on breakpoint, at the same line, I see them in the "Debug" view

And would like to be able to: Compare instantly the value of n in both executions. This could be achieved by allowing the "Variables" view to add a new "value" column for the specific launch. An action such as "Show value for <first Launch>" or "Show value for " would be perfect.

Community

  • [x] I understand suggesting an enhancement doesn't mandate anyone to implement it. Other contributors may consider this suggestion, or not, at their own convenience. The most efficient way to get it fixed is that I implement it myself and contribute it back as a good quality patch to the project.

mickaelistria avatar Jan 30 '24 11:01 mickaelistria

Hi @mickaelistria Is it something like this ?

https://github.com/user-attachments/assets/b83ccd80-8b4e-4921-b127-69f40c0372fa

Image Image

SougandhS avatar Aug 28 '25 13:08 SougandhS

Yes, that's exactly the kind of workflow I would love to use!

mickaelistria avatar Aug 28 '25 13:08 mickaelistria

On expanded variables

Image

Image



Yes, that's exactly the kind of workflow I would love to use!

Great! I'll raise a PR once its done.

SougandhS avatar Aug 29 '25 11:08 SougandhS

I believe this PR should https://github.com/eclipse-platform/eclipse.platform/pull/2203 solve this issue

SougandhS avatar Oct 20 '25 10:10 SougandhS

Note that there is 1 decent workaround for this already:

  • Select 1 context, go to Variables or run Ctrl+Shift+I to get the value, and click on top-right > Pin Dialog
  • Same on 2nd context
  • Place then side by side and expand (on each side) to compare the values.

The current workaround is IMO already powerfulm and makes that #2203 is not so interesting compared to it.

The benefit of having columns is that the "expand" would apply to both values, saving a few clicks.

mickaelistria avatar Oct 20 '25 11:10 mickaelistria