add list of registered type into assert

This commit is contained in:
Vladimir Krivosheev
2017-03-15 11:54:52 +01:00
parent 1fa8710e48
commit d92cfe60dc
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -253,7 +253,7 @@ public class XBreakpointManagerImpl implements XBreakpointManager, PersistentSta
@Override
public <B extends XBreakpoint<?>> Collection<? extends B> getBreakpoints(@NotNull Class<? extends XBreakpointType<B, ?>> typeClass) {
XBreakpointType<B, ?> type = XDebuggerUtil.getInstance().findBreakpointType(typeClass);
LOG.assertTrue(type != null, "Unregistered breakpoint type " + typeClass);
LOG.assertTrue(type != null, "Unregistered breakpoint type " + typeClass + ", registered: " + Arrays.toString(XBreakpointType.EXTENSION_POINT_NAME.getExtensions()));
return getBreakpoints(type);
}