refactor creation of debugger process

This commit is contained in:
Matt Parker
2026-01-06 19:15:49 +10:00
parent 60e7f9d650
commit 50fdf68bd1
6 changed files with 54 additions and 27 deletions

View File

@@ -62,6 +62,11 @@ public partial class RunMenuItem : HBoxContainer
private async void OnDebugButtonPressed()
{
GodotGlobalEvents.Instance.BottomPanelTabExternallySelected.InvokeParallelFireAndForget(BottomPanelType.Debug);
await _runService.RunProject(Project, true, Singletons.AppState.IdeSettings.DebuggerExecutablePath).ConfigureAwait(false);
var debuggerExecutableInfo = new DebuggerExecutableInfo
{
UseInMemorySharpDbg = false,
DebuggerExecutablePath = Singletons.AppState.IdeSettings.DebuggerExecutablePath
};
await _runService.RunProject(Project, true, debuggerExecutableInfo).ConfigureAwait(false);
}
}