mirror of
https://github.com/godotengine/godot-csharp-vscode.git
synced 2026-01-04 18:09:54 +03:00
34 lines
966 B
C#
34 lines
966 B
C#
using Mono.Debugging.Soft;
|
|
|
|
namespace GodotDebugSession
|
|
{
|
|
public class GodotDebuggerStartInfo : SoftDebuggerStartInfo
|
|
{
|
|
public string GodotExecutablePath { get; }
|
|
public ExecutionType ExecutionType { get; }
|
|
public IProcessOutputListener ProcessOutputListener { get; }
|
|
|
|
public GodotDebuggerStartInfo(ExecutionType executionType, string godotExecutablePath,
|
|
IProcessOutputListener processOutputListener, SoftDebuggerRemoteArgs softDebuggerConnectArgs) :
|
|
base(softDebuggerConnectArgs)
|
|
{
|
|
ExecutionType = executionType;
|
|
GodotExecutablePath = godotExecutablePath;
|
|
ProcessOutputListener = processOutputListener;
|
|
}
|
|
}
|
|
|
|
public enum ExecutionType
|
|
{
|
|
PlayInEditor,
|
|
Launch,
|
|
Attach
|
|
}
|
|
|
|
public interface IProcessOutputListener
|
|
{
|
|
void ReceiveStdOut(string data);
|
|
void ReceiveStdErr(string data);
|
|
}
|
|
}
|