Files
godot-csharp-vscode/GodotDebugSession/GodotDebuggerStartInfo.cs
Ignacio Etcheverry 94e3f57d7a Initial commit
2020-05-09 16:24:06 +02:00

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);
}
}