Codota Logo
XDebugSession.getCurrentStackFrame
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now