- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.intellij.xdebugger.XDebuggerManager
类的一些代码示例,展示了XDebuggerManager
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XDebuggerManager
类的具体详情如下:
包路径:com.intellij.xdebugger.XDebuggerManager
类名称:XDebuggerManager
暂无
代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin
return XDebuggerManager.getInstance(env.getProject()).startSession(env, new XDebugProcessStarter() {
@NotNull
@Override
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
@VisibleForTesting
XBreakpointManager getXBreakpointManager(Project project) {
return XDebuggerManager.getInstance(project).getBreakpointManager();
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
@NotNull
@VisibleForTesting
Set<RunProfile> getProfilesWithActiveDebugSession(Project project) {
Set<RunProfile> debuggingProfiles = new HashSet<RunProfile>();
XDebuggerManager debugManager = XDebuggerManager.getInstance(project);
for (XDebugSession session : debugManager.getDebugSessions()) {
if (notStoppedAndHasRunProfile(session)) {
debuggingProfiles.add(session.getRunProfile());
}
}
return debuggingProfiles;
}
代码示例来源: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: GoogleCloudPlatform/google-cloud-intellij
void createMockXDebuggerManager(Project project, XDebugSession[] value) {
XDebuggerManager debuggerManager = mock(XDebuggerManager.class);
when(debuggerManager.getDebugSessions()).thenReturn(value);
when(project.getComponent(XDebuggerManager.class)).thenReturn(debuggerManager);
}
代码示例来源: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: GoogleCloudPlatform/google-cloud-intellij
private List<CloudDebugProcess> getActiveDebugProcesses(Project project) {
List<CloudDebugProcess> processes = Lists.newArrayList();
for (XDebugSession session : XDebuggerManager.getInstance(project).getDebugSessions()) {
if (session.getDebugProcess() instanceof CloudDebugProcess) {
processes.add((CloudDebugProcess) session.getDebugProcess());
}
}
return processes;
}
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
when(debuggerManager.getBreakpointManager()).thenReturn(breakpointManager);
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
private Project createProject(
int inProgressDebugSessions,
int backgroundListeningDebugsSessions,
int notListeningDebugSessions) {
XDebuggerManager debuggerManager = mock(XDebuggerManager.class);
XDebugSession[] debugSessions = new XDebugSession[inProgressDebugSessions];
List<RunnerAndConfigurationSettings> allRunnerSettings =
new ArrayList<RunnerAndConfigurationSettings>();
for (int i = 0; i < inProgressDebugSessions; i++) {
XDebugSession debugSession = createInProgressDebugSettings(allRunnerSettings);
debugSessions[i] = debugSession;
}
when(debuggerManager.getDebugSessions()).thenReturn(debugSessions);
applicationContainer.unregisterComponent(XDebuggerManager.class.getName());
registerService(XDebuggerManager.class, debuggerManager);
for (int i = 0; i < backgroundListeningDebugsSessions; i++) {
createBackgroundListeningDebugSettings(allRunnerSettings);
}
for (int i = 0; i < notListeningDebugSessions; i++) {
createNotListeningNotActiveSettings(allRunnerSettings);
}
RunManager runManager = mock(RunManager.class);
when(runManager.getAllSettings()).thenReturn(allRunnerSettings);
applicationContainer.unregisterComponent(RunManager.class.getName());
registerService(RunManager.class, runManager);
return project;
}
代码示例来源: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: ballerina-platform/ballerina-lang
((BallerinaApplicationRunningState) state).setDebugPort(port);
return XDebuggerManager.getInstance(env.getProject()).startSession(env, new XDebugProcessStarter() {
((BallerinaTestRunningState) state).setDebugPort(port);
return XDebuggerManager.getInstance(env.getProject()).startSession(env, new XDebugProcessStarter() {
} else if (state instanceof BallerinaRemoteRunningState) {
FileDocumentManager.getInstance().saveAllDocuments();
return XDebuggerManager.getInstance(env.getProject()).startSession(env, new XDebugProcessStarter() {
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
project.addComponent(XDebuggerManager.class, debuggerManager);
breakpointManager = mock(XBreakpointManager.class);
when(debuggerManager.getBreakpointManager()).thenReturn(breakpointManager);
代码示例来源: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: Camelcade/Perl5-IDEA
@Override
protected RunContentDescriptor doExecute(@NotNull final RunProfileState state, @NotNull final ExecutionEnvironment env)
throws ExecutionException {
FileDocumentManager.getInstance().saveAllDocuments();
XDebugSession xDebugSession = XDebuggerManager.getInstance(env.getProject()).startSession(env, new XDebugProcessStarter() {
@NotNull
@Override
public XDebugProcess start(@NotNull XDebugSession session) throws ExecutionException {
return new PerlDebugProcess(session, (PerlDebugProfileStateBase)state,
state.execute(env.getExecutor(), PerlDebuggerProgramRunner.this));
}
});
return xDebugSession.getRunContentDescriptor();
}
}
代码示例来源: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: intellij-dlanguage/intellij-dlanguage
final XDebugSession debugSession = XDebuggerManager.getInstance(project).startSession(env,
new XDebugProcessStarter() {
@NotNull
代码示例来源: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
XDebuggerManager.getInstance(environment.getProject())
.startSession(
environment,
new XDebugProcessStarter() {
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
XDebuggerManager.getInstance(process.getXDebugSession().getProject())
.getBreakpointManager();
if (serverBreakpoint.getLocation() == null) {
continue;
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
XDebuggerManager.getInstance(process.getXDebugSession().getProject())
.getBreakpointManager();
if (serverBreakpoint.getLocation() == null) {
LOG.warn(
本文整理了Java中com.intellij.xdebugger.XSourcePosition类的一些代码示例,展示了XSourcePosition类的具体用法。这些代码示例主要来源于Github/
本文整理了Java中com.intellij.xdebugger.XDebuggerManager类的一些代码示例,展示了XDebuggerManager类的具体用法。这些代码示例主要来源于Githu
本文整理了Java中com.intellij.xdebugger.XDebugSession类的一些代码示例,展示了XDebugSession类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中com.intellij.xdebugger.frame.XValueChildrenList类的一些代码示例,展示了XValueChildrenList类的具体用法。这些代码示例
本文整理了Java中com.intellij.xdebugger.breakpoints.XLineBreakpoint类的一些代码示例,展示了XLineBreakpoint类的具体用法。这些代码示例
本文整理了Java中com.intellij.xdebugger.XSourcePosition.getFile()方法的一些代码示例,展示了XSourcePosition.getFile()的具体用
本文整理了Java中com.intellij.xdebugger.XSourcePosition.getLine()方法的一些代码示例,展示了XSourcePosition.getLine()的具体用
本文整理了Java中com.intellij.xdebugger.XDebuggerManager.getDebugSessions()方法的一些代码示例,展示了XDebuggerManager.ge
本文整理了Java中com.intellij.xdebugger.XDebuggerManager.startSession()方法的一些代码示例,展示了XDebuggerManager.startS
本文整理了Java中com.intellij.xdebugger.XDebugSession.sessionResumed()方法的一些代码示例,展示了XDebugSession.sessionRes
本文整理了Java中com.intellij.xdebugger.XDebuggerManager.getBreakpointManager()方法的一些代码示例,展示了XDebuggerManage
本文整理了Java中com.intellij.xdebugger.XDebugSession.getDebugProcess()方法的一些代码示例,展示了XDebugSession.getDebugP
本文整理了Java中com.intellij.xdebugger.XDebuggerManager.getInstance()方法的一些代码示例,展示了XDebuggerManager.getInst
本文整理了Java中com.intellij.xdebugger.XDebugSession.positionReached()方法的一些代码示例,展示了XDebugSession.positionR
本文整理了Java中com.intellij.xdebugger.XDebugSession.getRunProfile()方法的一些代码示例,展示了XDebugSession.getRunProfi
本文整理了Java中com.intellij.xdebugger.XDebugSession.stop()方法的一些代码示例,展示了XDebugSession.stop()的具体用法。这些代码示例主要
本文整理了Java中com.intellij.xdebugger.XDebugSession.getCurrentPosition()方法的一些代码示例,展示了XDebugSession.getCur
本文整理了Java中com.intellij.xdebugger.XDebugSession.getRunContentDescriptor()方法的一些代码示例,展示了XDebugSession.g
本文整理了Java中com.intellij.xdebugger.XDebugSession.updateBreakpointPresentation()方法的一些代码示例,展示了XDebugSess
本文整理了Java中com.intellij.xdebugger.XDebugSession.breakpointReached()方法的一些代码示例,展示了XDebugSession.breakpo
我是一名优秀的程序员,十分优秀!