use of com.google.cloud.tools.intellij.debugger.CloudDebugConfigType in project google-cloud-intellij by GoogleCloudPlatform.
the class AppEngineStandardWebIntegration method setupDebugRunConfiguration.
private void setupDebugRunConfiguration(@NotNull Project project) {
RunManager runManager = RunManager.getInstance(project);
boolean hasExistingDebugConfiguration = runManager.getAllConfigurationsList().stream().anyMatch(config -> config instanceof CloudDebugRunConfiguration);
if (!hasExistingDebugConfiguration) {
CloudDebugConfigType debugConfigType = CloudDebugConfigType.getInstance();
ConfigurationFactory factory = debugConfigType.getConfigurationFactories()[0];
RunnerAndConfigurationSettings settings = runManager.createConfiguration(new CloudDebugRunConfiguration(project, factory).clone(), factory);
runManager.addConfiguration(settings, false);
}
}
Aggregations