cal
cal

Reputation: 121

Enable and disable all breakpoints for one of many active debug configs in eclipse

Rather than disabling breakpoints for all debug configs, it'd be nice to disable breakpoints for one particular running debug config.

For my case, there's common code between a client and server. I'd like to only enable breakpoints for the server, so that I don't have to relaunch the client with debugging disabled.

I'm looking for finer granularity than that in Enable and disable all breakpoints in eclipse

Upvotes: 1

Views: 71

Answers (2)

LMC
LMC

Reputation: 12662

One way to do that would be creating breakpoint working sets and then using 'Group by' to show them by working set. That would allow to easily enable/disable breakpoints.
Multiple selections of existing breakpoints can be moved to a working set with drag and drop (Shift+click, Ctrl+click).

enter image description here

Upvotes: 1

haba713
haba713

Reputation: 2677

  1. Add VM argument -Dbrk=A, -Dbrk=B... into Eclipse run / debug / server configuration.
  2. Add conditional breakpoint with condition "A".equals(System.getProperty("brk")), "B".equals(System.getProperty("brk")) ...

Upvotes: 1

Related Questions