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

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

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

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

@Nullable
private VirtualFile findFile() {
 String url = myLocation.file;
 VirtualFile file = LocalFileSystem.getInstance().findFileByPath(url);
 if (file == null && SystemInfo.isWindows) {
  Project project = myProcess.getSession().getProject();
  RunProfile profile = myProcess.getSession().getRunProfile();
  Module module = profile instanceof ModuleBasedConfiguration ? ((ModuleBasedConfiguration)profile).getConfigurationModule().getModule() : null;
  String sdkHomePath = GoSdkService.getInstance(project).getSdkHomePath(module);
  if (sdkHomePath == null) return null;
  String newUrl = StringUtil.replaceIgnoreCase(url, "c:/go", sdkHomePath);
  return LocalFileSystem.getInstance().findFileByPath(newUrl);
 }
 return file;
}
origin: GoogleCloudPlatform/google-cloud-intellij

@VisibleForTesting
boolean notStoppedAndHasRunProfile(XDebugSession session) {
 return !session.isStopped() && session.getRunProfile() != null;
}
origin: GoogleCloudPlatform/google-cloud-intellij

@NotNull
@VisibleForTesting
Set<RunProfile> getProfilesWithActiveDebugSession(Project project) {
 Set<RunProfile> debuggingProfiles = new HashSet<RunProfile>();
 XDebuggerManager debugManager = XDebuggerManager.getInstance(project);
 for (XDebugSession session : debugManager.getDebugSessions()) {
  if (notStoppedAndHasRunProfile(session)) {
   debuggingProfiles.add(session.getRunProfile());
  }
 }
 return debuggingProfiles;
}
origin: GoogleCloudPlatform/google-cloud-intellij

 @NotNull
 private XDebugSession createMockSession(boolean isStopped, RunProfile runProfile) {
  XDebugSession debugSession = mock(XDebugSession.class);
  when(debugSession.isStopped()).thenReturn(isStopped);
  if (runProfile != null) {
   when(debugSession.getRunProfile()).thenReturn(runProfile);
  }
  return debugSession;
 }
}
origin: GoogleCloudPlatform/google-cloud-intellij

@Override
public void stop() {
 getStateController().stopBackgroundListening();
 RunProfile profile = getXDebugSession().getRunProfile();
 if (profile instanceof CloudDebugRunConfiguration) {
  ((CloudDebugRunConfiguration) profile).setProcessState(processState);
 }
 getRepositoryValidator().restoreToOriginalState(getXDebugSession().getProject());
 XBreakpointManager breakpointManager =
   XDebuggerManager.getInstance(getXDebugSession().getProject()).getBreakpointManager();
 for (XBreakpoint bp : breakpointManager.getAllBreakpoints()) {
  com.intellij.debugger.ui.breakpoints.Breakpoint cloudBreakpoint =
    BreakpointManager.getJavaBreakpoint(bp);
  if (!(cloudBreakpoint instanceof CloudLineBreakpointType.CloudLineBreakpoint)) {
   continue;
  }
  CloudLineBreakpointType.CloudLineBreakpoint cloudLineBreakpoint =
    (CloudLineBreakpointType.CloudLineBreakpoint) cloudBreakpoint;
  cloudLineBreakpoint.setVerified(false);
  cloudLineBreakpoint.setErrorMessage(null);
  updateBreakpointPresentation(cloudLineBreakpoint);
 }
}
com.intellij.xdebuggerXDebugSessiongetRunProfile

Popular methods of XDebugSession

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best IntelliJ plugins
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