本文整理了Java中com.intellij.xdebugger.XDebuggerManager.getBreakpointManager()
方法的一些代码示例,展示了XDebuggerManager.getBreakpointManager()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XDebuggerManager.getBreakpointManager()
方法的具体详情如下:
包路径:com.intellij.xdebugger.XDebuggerManager
类名称:XDebuggerManager
方法名:getBreakpointManager
暂无
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
@VisibleForTesting
XBreakpointManager getXBreakpointManager(Project project) {
return XDebuggerManager.getInstance(project).getBreakpointManager();
}
代码示例来源:origin: Camelcade/Perl5-IDEA
@Override
protected void processBreakPoint(@NotNull XLineBreakpoint breakpoint, XDebugSession session) {
XDebuggerManager.getInstance(session.getProject()).getBreakpointManager().updateBreakpointPresentation(
breakpoint,
AllIcons.Debugger.Db_invalid_breakpoint,
"You can't set a breakpoint here"
);
}
}
代码示例来源:origin: Camelcade/Perl5-IDEA
@Override
protected void processBreakPoint(@NotNull XLineBreakpoint breakpoint, XDebugSession session) {
XDebuggerManager.getInstance(session.getProject()).getBreakpointManager().updateBreakpointPresentation(
breakpoint,
AllIcons.Debugger.Db_verified_breakpoint,
"Breakpoint set"
);
}
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
@NotNull
private CloudDebugProcess mockCloudDebugProcess(
XBreakpointManager breakpointManager, XDebugSession debugSession) {
Project project = mock(Project.class);
when(debugSession.getProject()).thenReturn(project);
XDebuggerManager debuggerManager = mock(XDebuggerManager.class);
when(project.getComponent(XDebuggerManager.class)).thenReturn(debuggerManager);
when(debuggerManager.getBreakpointManager()).thenReturn(breakpointManager);
return spy(new CloudDebugProcess(debugSession));
}
代码示例来源:origin: Camelcade/Perl5-IDEA
@Override
public void stop() {
myDebugThread.setStop();
ApplicationManager.getApplication().runReadAction(
() -> {
XBreakpointManager breakpointManager = XDebuggerManager.getInstance(getSession().getProject()).getBreakpointManager();
Collection<? extends XLineBreakpoint<PerlLineBreakpointProperties>> breakpoints =
breakpointManager.getBreakpoints(PerlLineBreakpointType.class);
for (XLineBreakpoint<PerlLineBreakpointProperties> breakpoint : breakpoints) {
breakpointManager.updateBreakpointPresentation(breakpoint, null, null);
}
}
);
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
when(debuggerManager.getBreakpointManager()).thenReturn(breakpointManager);
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
project.addComponent(XDebuggerManager.class, debuggerManager);
breakpointManager = mock(XBreakpointManager.class);
when(debuggerManager.getBreakpointManager()).thenReturn(breakpointManager);
代码示例来源:origin: Camelcade/Perl5-IDEA
@Nullable
public static XLineBreakpoint findBreakpoint(final Project project, final PerlDebuggingEventBreakpoint breakpointBase) {
final XLineBreakpoint[] result = new XLineBreakpoint[]{null};
ApplicationManager.getApplication().runReadAction(() -> {
String path = breakpointBase.getPath();
VirtualFile virtualFile;
String virtualFileUrl;
virtualFile = VfsUtil.findFileByIoFile(new File(breakpointBase.getDebugThread().getDebugProfileState().mapPathToLocal(path)), true);
if (virtualFile == null) {
virtualFileUrl = PerlRemoteFileSystem.PROTOCOL_PREFIX + path;
}
else {
virtualFileUrl = virtualFile.getUrl();
}
Collection<? extends XLineBreakpoint<PerlLineBreakpointProperties>> breakpoints =
XDebuggerManager.getInstance(project).getBreakpointManager().getBreakpoints(PerlLineBreakpointType.class);
for (XLineBreakpoint<PerlLineBreakpointProperties> breakpoint : breakpoints) {
if (StringUtil.equals(breakpoint.getFileUrl(), virtualFileUrl) && breakpoint.getLine() == breakpointBase.getLine()) {
result[0] = breakpoint;
return;
}
}
});
return result[0];
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
final XBreakpointManager manager =
XDebuggerManager.getInstance(process.getXDebugSession().getProject())
.getBreakpointManager();
if (serverBreakpoint.getLocation() == null) {
continue;
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
@Override
public void stop() {
getStateController().stopBackgroundListening();
RunProfile profile = getXDebugSession().getRunProfile();
if (profile instanceof CloudDebugRunConfiguration) {
((CloudDebugRunConfiguration) profile).setProcessState(processState);
}
getRepositoryValidator().restoreToOriginalState(getXDebugSession().getProject());
XBreakpointManager breakpointManager =
XDebuggerManager.getInstance(getXDebugSession().getProject()).getBreakpointManager();
for (XBreakpoint bp : breakpointManager.getAllBreakpoints()) {
com.intellij.debugger.ui.breakpoints.Breakpoint cloudBreakpoint =
BreakpointManager.getJavaBreakpoint(bp);
if (!(cloudBreakpoint instanceof CloudLineBreakpointType.CloudLineBreakpoint)) {
continue;
}
CloudLineBreakpointType.CloudLineBreakpoint cloudLineBreakpoint =
(CloudLineBreakpointType.CloudLineBreakpoint) cloudBreakpoint;
cloudLineBreakpoint.setVerified(false);
cloudLineBreakpoint.setErrorMessage(null);
updateBreakpointPresentation(cloudLineBreakpoint);
}
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
final XBreakpointManager manager =
XDebuggerManager.getInstance(process.getXDebugSession().getProject())
.getBreakpointManager();
if (serverBreakpoint.getLocation() == null) {
LOG.warn(
内容来源于网络,如有侵权,请联系作者删除!