public override async Task <bool> CanLaunchAsync(DebugLaunchOptions launchOptions) { string commandValue = await DebugLaunchDataStore.SDBTaskAsync(); //TODO : Check the presence of SDB and pop Install Wizard in case of its absence. return(File.Exists(commandValue) || (DeviceManager.DeviceInfoList.Count == 0)); }
public override async Task <IReadOnlyList <IDebugLaunchSettings> > QueryDebugTargetsAsync(DebugLaunchOptions launchOptions) { // The properties that are available via DebuggerProperties are determined by the property XAML files in your project. var settings = new DebugLaunchSettings(launchOptions); var debuggerProperties = await this.DebuggerProperties.GetProjectDebuggerPropertiesAsync(); settings.CurrentDirectory = await debuggerProperties.Debugger1WorkingDirectory.GetEvaluatedValueAtEndAsync(); settings.LaunchOperation = DebugLaunchOperation.CreateProcess; settings.Executable = await DebugLaunchDataStore.SDBTaskAsync(); settings.Arguments = ""; settings.LaunchDebugEngineGuid = MIEngineId; settings.Options = tDebugLaunchOptions.DebugEngineOptions; TraceTizenPackage(); return(new IDebugLaunchSettings[] { settings }); }