public DebuggerStartInfo CreateDebuggerStartInfo (ExecutionCommand command) { var cmd = (TizenExecutionCommand) command; var debuggerAddress = Dns.GetHostEntry (Dns.GetHostName ()).AddressList[0]; int debuggerPort = 10000; var dev = TizenSdkInfo.GetSdkInfo (); var startInfo = new TizenSoftDebuggerStartInfo (debuggerAddress, debuggerPort, cmd, dev); SoftDebuggerEngine.SetUserAssemblyNames (startInfo, cmd.UserAssemblyPaths); return startInfo; }
void StartProcess (TizenSoftDebuggerStartInfo dsi) { TizenUtility.Upload (dsi.SdkInfo, dsi.ExecutionCommand.Config, null, null, null); var dra = (SoftDebuggerRemoteArgs) dsi.StartArgs; string debugOptions = string.Format ("transport=dt_socket,address={0}:{1}", dra.Address, dra.DebugPort); process = TizenExecutionHandler.CreateProcess (dsi.ExecutionCommand, debugOptions, dsi.SdkInfo, x => OnTargetOutput (false, x), x => OnTargetOutput (true, x)); process.Completed += delegate { process = null; }; TargetExited += delegate { EndProcess (); }; process.Start(); }