1

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

cal
  • 121
  • 6

2 Answers2

1
  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")) ...
haba713
  • 2,465
  • 1
  • 24
  • 45
1

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

LMC
  • 10,453
  • 2
  • 27
  • 52