configuration.autoStartGdb = true;
configuration.GDB_PATH = "gdb";
configuration.debugBuilderArguments = "-gcflags \"-N -l\"";
configuration.setModule(module);
configuration.setName(configName);
RunnerAndConfigurationSettings runAndConfig = runManager.createConfiguration(configuration, goConfigFactory);
runManager.addConfiguration(runAndConfig, false);
runManager.setSelectedConfiguration(runAndConfig);
toolWindow.showAndCreate(module.getProject());