aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2018-06-19 08:08:19 -0400
committerAndrey Loskutov2018-06-19 08:08:19 -0400
commit4637c25a6076e00e0b989cd2a63f66547a163120 (patch)
treea8b1e9cb8f8d11ad4b840806194bf20a87bb8c6d
parent2d9aaed146f02c9f46d082f6cf63a17f11d91210 (diff)
downloadeclipse.platform.debug-4637c25a6076e00e0b989cd2a63f66547a163120.tar.gz
eclipse.platform.debug-4637c25a6076e00e0b989cd2a63f66547a163120.tar.xz
eclipse.platform.debug-4637c25a6076e00e0b989cd2a63f66547a163120.zip
Added toString() to a Breakpoint for debugging debugger
Change-Id: I13f3064cd851efb05acd7435af03ce63f6d84661 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/core/model/Breakpoint.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/core/model/Breakpoint.java b/org.eclipse.debug.core/core/org/eclipse/debug/core/model/Breakpoint.java
index 62abed746..b439045fe 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/core/model/Breakpoint.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/core/model/Breakpoint.java
@@ -390,4 +390,16 @@ public abstract class Breakpoint extends PlatformObject implements IBreakpoint,
}
}
+ @Override
+ public String toString() {
+ StringBuilder builder = new StringBuilder(getClass().getSimpleName());
+ builder.append(" on ["); //$NON-NLS-1$
+ if (fMarker != null) {
+ builder.append("marker="); //$NON-NLS-1$
+ builder.append(fMarker);
+ }
+ builder.append("]"); //$NON-NLS-1$
+ return builder.toString();
+ }
+
}