当前位置: 首页>>代码示例>>Java>>正文


Java DebuggerSettings.SUSPEND_THREAD属性代码示例

本文整理汇总了Java中com.intellij.debugger.settings.DebuggerSettings.SUSPEND_THREAD属性的典型用法代码示例。如果您正苦于以下问题:Java DebuggerSettings.SUSPEND_THREAD属性的具体用法?Java DebuggerSettings.SUSPEND_THREAD怎么用?Java DebuggerSettings.SUSPEND_THREAD使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.intellij.debugger.settings.DebuggerSettings的用法示例。



在下文中一共展示了DebuggerSettings.SUSPEND_THREAD属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: contextAction

public void contextAction() {
  showStatusText(DebuggerBundle.message("status.run.to.cursor"));
  cancelRunToCursorBreakpoint();
  if (myRunToCursorBreakpoint == null) {
    return;
  }
  if (myIgnoreBreakpoints) {
    final BreakpointManager breakpointManager = DebuggerManagerEx.getInstanceEx(myProject).getBreakpointManager();
    breakpointManager.disableBreakpoints(DebugProcessImpl.this);
  }
  applyThreadFilter(getContextThread());
  final SuspendContextImpl context = getSuspendContext();
  myRunToCursorBreakpoint.SUSPEND_POLICY = context.getSuspendPolicy() == EventRequest.SUSPEND_EVENT_THREAD? DebuggerSettings.SUSPEND_THREAD : DebuggerSettings.SUSPEND_ALL;
  myRunToCursorBreakpoint.LOG_ENABLED = false;
  myRunToCursorBreakpoint.createRequest(context.getDebugProcess());
  DebugProcessImpl.this.myRunToCursorBreakpoint = myRunToCursorBreakpoint;
  super.contextAction();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:18,代码来源:DebugProcessImpl.java


示例2: getSuspendPolicy

private static String getSuspendPolicy(XBreakpoint breakpoint) {
  switch (breakpoint.getSuspendPolicy()) {
    case ALL:
      return DebuggerSettings.SUSPEND_ALL;
    case THREAD:
      return DebuggerSettings.SUSPEND_THREAD;
    case NONE:
      return DebuggerSettings.SUSPEND_NONE;

    default:
      throw new IllegalArgumentException("unknown suspend policy");
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:Breakpoint.java


示例3: getSuspendPolicy

private static String getSuspendPolicy(XBreakpoint breakpoint)
{
	switch(breakpoint.getSuspendPolicy())
	{
		case ALL:
			return DebuggerSettings.SUSPEND_ALL;
		case THREAD:
			return DebuggerSettings.SUSPEND_THREAD;
		case NONE:
			return DebuggerSettings.SUSPEND_NONE;

		default:
			throw new IllegalArgumentException("unknown suspend policy");
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:15,代码来源:Breakpoint.java


示例4: getSelectedSuspendPolicy

private String getSelectedSuspendPolicy() {
  if (myRbSuspendThread.isSelected()) {
    return DebuggerSettings.SUSPEND_THREAD;
  }
  return DebuggerSettings.SUSPEND_ALL;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:6,代码来源:BreakpointPropertiesPanel.java


示例5: getSuspendPolicy

@Override
public String getSuspendPolicy()
{
	return DebuggerSettings.SUSPEND_THREAD;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:5,代码来源:StackCapturingLineBreakpoint.java



注:本文中的com.intellij.debugger.settings.DebuggerSettings.SUSPEND_THREAD属性示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。