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

x33g5p2x  于2022-02-03 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(90)

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

XDebugSession.updateBreakpointPresentation介绍

暂无

代码示例

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

@Override
public void registerBreakpoint(@NotNull XLineBreakpoint<BallerinaBreakpointProperties> breakpoint) {
  XSourcePosition breakpointPosition = breakpoint.getSourcePosition();
  if (breakpointPosition == null) {
    return;
  }
  breakpoints.add(breakpoint);
  sendBreakpoints();
  getSession().updateBreakpointPresentation(breakpoint, AllIcons.Debugger.Db_verified_breakpoint, null);
}

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

@Override
public void registerBreakpoint(@NotNull XLineBreakpoint<DlvBreakpointProperties> breakpoint) {
 XSourcePosition breakpointPosition = breakpoint.getSourcePosition();
 if (breakpointPosition == null) return;
 VirtualFile file = breakpointPosition.getFile();
 int line = breakpointPosition.getLine();
 send(new DlvRequest.CreateBreakpoint(file.getPath(), line + 1))
  .done(b -> {
   breakpoint.putUserData(ID, b.id);
   breakpoints.put(b.id, breakpoint);
   getSession().updateBreakpointPresentation(breakpoint, AllIcons.Debugger.Db_verified_breakpoint, null);
  })
  .rejected(t -> {
   String message = t == null ? null : t.getMessage();
   getSession().updateBreakpointPresentation(breakpoint, AllIcons.Debugger.Db_invalid_breakpoint, message);
  });
}

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

XLineBreakpoint<GdbBreakpointProperties> breakpoint) {
if (event instanceof GdbErrorEvent) {
  m_debugProcess.getSession().updateBreakpointPresentation(breakpoint,
    AllIcons.Debugger.Db_invalid_breakpoint, ((GdbErrorEvent) event).message);
  return;
  m_debugProcess.getSession().updateBreakpointPresentation(breakpoint,
    AllIcons.Debugger.Db_invalid_breakpoint, "Unexpected data received from GDB");
  m_log.warn("Unexpected event " + event + " received from -break-insert request");
  m_debugProcess.getSession().updateBreakpointPresentation(breakpoint,
    AllIcons.Debugger.Db_invalid_breakpoint, "No breakpoint number received from GDB");
  m_log.warn("No breakpoint number received from GDB after -break-insert request");
m_debugProcess.getSession().updateBreakpointPresentation(breakpoint,
  AllIcons.Debugger.Db_verified_breakpoint, null);

相关文章