env = RunContentBuilder.fix(env, this);
final XDebugSession debugSession = XDebuggerManager.getInstance(project).startSession(env, new XDebugProcessStarter() {
@NotNull
@Override
public XDebugProcess start(@NotNull XDebugSession session) throws ExecutionException {
return new GdbDebugProcess(project, session, (GdbExecutionResult) executionResult);
}
});
Sdk sdk = GoSdkUtil.getGoogleGoSdkForProject(project);
if ( sdk == null ) {
debugSession.stop();
return null;
}
final GoSdkData sdkData = (GoSdkData)sdk.getSdkAdditionalData();
if ( sdkData == null ) {
debugSession.stop();
return null;
}
GdbDebugProcess debugProcess = ((GdbDebugProcess) debugSession.getDebugProcess());
String goRootPath;
try {
goRootPath = (new File(sdkData.GO_GOROOT_PATH)).getCanonicalPath();
} catch (IOException ignored) {