protected override async void OnRun(DebuggerStartInfo startInfo) { try { meadowStartInfo = startInfo as MeadowSoftDebuggerStartInfo; var connectArgs = meadowStartInfo.StartArgs as SoftDebuggerConnectArgs; var port = connectArgs?.DebugPort ?? 0; await meadowStartInfo.ExecutionCommand.DeployApp(port, debugCancelTokenSource.Token); } catch (Exception ex) { Console.WriteLine("Deploy error: " + ex.Message); } base.OnRun(startInfo); }
public override DebuggerStartInfo CreateDebuggerStartInfo(ExecutionCommand cmd) { if (cmd is MeadowExecutionCommand command) { var args = new SoftDebuggerConnectArgs(string.Empty, System.Net.IPAddress.Loopback, 55898) { MaxConnectionAttempts = 20, TimeBetweenConnectionAttempts = 500 }; var startInfo = new MeadowSoftDebuggerStartInfo(command, args); // TODO: Get User Assemblies (not system references and call to set them) // SoftDebuggerEngine.SetUserAssemblyNames(startInfo, new List<string> { }); return(startInfo); } return(null); }