gpt4 book ai didi

com.intellij.xdebugger.XDebugSession.stop()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 19:08:40 33 4
gpt4 key购买 nike

本文整理了Java中com.intellij.xdebugger.XDebugSession.stop()方法的一些代码示例,展示了XDebugSession.stop()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XDebugSession.stop()方法的具体详情如下:
包路径:com.intellij.xdebugger.XDebugSession
类名称:XDebugSession
方法名:stop

XDebugSession.stop介绍

暂无

代码示例

代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin

@Override
public void stop() {
 if (getVm() != null) {
  send(new DlvRequest.Detach(true));
 }
 getSession().stop();
}

代码示例来源:origin: ballerina-platform/ballerina-lang

@Nullable
private String getWorkerID(@Nullable XSuspendContext context) {
  if (context != null) {
    XExecutionStack activeExecutionStack = context.getActiveExecutionStack();
    if (activeExecutionStack instanceof BallerinaSuspendContext.BallerinaExecutionStack) {
      return ((BallerinaSuspendContext.BallerinaExecutionStack) activeExecutionStack).getMyWorkerID();
    }
  }
  getSession().getConsoleView().print("Error occurred while getting the thread ID.",
      ConsoleViewContentType.ERROR_OUTPUT);
  getSession().stop();
  return null;
}

代码示例来源:origin: ballerina-platform/ballerina-lang

@Override
public void stop() {
  // If we don't call this using the executeOnPooledThread(), the UI will hang until the debug server is stopped.
  ApplicationManager.getApplication().executeOnPooledThread(() -> {
    XDebugSession session = getSession();
    if (!isRemoteDebugMode) {
      XSuspendContext suspendContext = session.getSuspendContext();
      if (suspendContext != null) {
        XExecutionStack activeExecutionStack = suspendContext.getActiveExecutionStack();
        if (activeExecutionStack instanceof BallerinaSuspendContext.BallerinaExecutionStack) {
          String workerID = ((BallerinaSuspendContext.BallerinaExecutionStack) activeExecutionStack)
              .getMyWorkerID();
          if (workerID != null) {
            myConnector.sendCommand(Command.STOP, workerID);
          }
        }
      } else {
        session.stop();
        return;
      }
    } else {
      myConnector.sendCommand(Command.STOP);
      session.stop();
      getSession().getConsoleView().print("Disconnected from the debug server.\n",
          ConsoleViewContentType.SYSTEM_OUTPUT);
    }
    isDisconnected = true;
    myConnector.close();
  });
}

代码示例来源:origin: ballerina-platform/ballerina-lang

myConnector.getDebugServerAddress() + " could not be established.\n",
    ConsoleViewContentType.ERROR_OUTPUT);
getSession().stop();

代码示例来源:origin: ballerina-platform/ballerina-lang

if (session != null) {
  session.sessionResumed();
  session.stop();

代码示例来源:origin: intellij-dlanguage/intellij-dlanguage

(stoppedEvent.reason.equals(GdbStoppedEvent.Reason.ExitedNormally) ||
  stoppedEvent.reason.equals(GdbStoppedEvent.Reason.ExitedSignalled))) {
debugSession.stop();
stoppedEvent.allStopped == null &&
stoppedEvent.stoppedThreads == null) {
debugSession.stop();

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com