Tabnine Logo
XDebugSession.getCurrentStackFrame
Code IndexAdd Tabnine to your IDE (free)

How to use
getCurrentStackFrame
method
in
com.intellij.xdebugger.XDebugSession

Best Java code snippets using com.intellij.xdebugger.XDebugSession.getCurrentStackFrame (Showing top 2 results out of 315)

origin: go-lang-plugin-org/go-lang-idea-plugin

 @Nullable
 private XSourcePosition findPosition() {
  XDebugSession debugSession = getSession();
  if (debugSession == null) return null;
  XStackFrame stackFrame = debugSession.getCurrentStackFrame();
  if (stackFrame == null) return null;
  Project project = debugSession.getProject();
  XSourcePosition position = debugSession.getCurrentPosition();
  Editor editor = ((FileEditorManagerImpl)FileEditorManager.getInstance(project)).getSelectedTextEditor(true);
  if (editor == null || position == null) return null;
  String name = myName.startsWith("&") ? myName.replaceFirst("\\&", "") : myName;
  PsiElement resolved = findTargetElement(project, position, editor, name);
  if (resolved == null) return null;
  VirtualFile virtualFile = resolved.getContainingFile().getVirtualFile();
  return XDebuggerUtil.getInstance().createPositionByOffset(virtualFile, resolved.getTextOffset());
 }
});
origin: ballerina-platform/ballerina-lang

  @Nullable
  private XSourcePosition findPosition() {
    XDebugSession debugSession = myProcess.getSession();
    if (debugSession == null) {
      return null;
    }
    XStackFrame stackFrame = debugSession.getCurrentStackFrame();
    if (stackFrame == null) {
      return null;
    }
    Project project = debugSession.getProject();
    XSourcePosition position = debugSession.getCurrentPosition();
    Editor editor = ((FileEditorManagerImpl) FileEditorManager.getInstance(project))
        .getSelectedTextEditor(true);
    if (editor == null || position == null) {
      return null;
    }
    String name = myName.startsWith("&") ? myName.replaceFirst("\\&", "") : myName;
    PsiElement resolved = findTargetElement(project, position, editor, name);
    if (resolved == null) {
      return null;
    }
    VirtualFile virtualFile = resolved.getContainingFile().getVirtualFile();
    return XDebuggerUtil.getInstance().createPositionByOffset(virtualFile, resolved.getTextOffset());
  }
});
com.intellij.xdebuggerXDebugSessiongetCurrentStackFrame

Popular methods of XDebugSession

  • getProject
  • getRunContentDescriptor
  • positionReached
  • breakpointReached
  • areBreakpointsMuted
  • getRunProfile
  • stop
  • updateBreakpointPresentation
  • getCurrentPosition
  • getDebugProcess
  • initBreakpoints
  • isStopped
  • initBreakpoints,
  • isStopped,
  • sessionResumed,
  • addSessionListener,
  • getConsoleView,
  • getSuspendContext,
  • getUI,
  • resume

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JFileChooser (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now