Пример #1
0
        /// <summary>
        /// Make sure this log is registered.
        /// </summary>
        internal static void EnsureLoaded(IIde ide, bool vsDebugPane)
        {
            if (log != null)
            {
                return;
            }

            var outputPane = !vsDebugPane?ide.CreateDot42OutputPane() : ide.CreateDebugOutputPane();

            var add = false;

            lock (logLock)
            {
                if (log == null)
                {
                    log = new OutputPaneLog(outputPane, vsDebugPane?Levels.Info : Levels.Error, vsDebugPane?DContext.VSDebuggerMessage:(DContext?)null);
                    add = true;
                }
            }
            if (add)
            {
                AddAdditionalLogger(log);
                if (vsDebugPane)
                {
                    AddToContext(DContext.VSDebuggerMessage, log);
                }
            }
        }
Пример #2
0
        /// <summary>
        /// Start looking for JDWP processes now.
        /// </summary>
        internal static void StartLaunchMonitor(IIde ide, IDevice device, string apkPath, string packageName, int apiLevel, int launchFlags, Action <LauncherStates, string> stateUpdate, CancellationToken token)
        {
            OutputPaneLog.EnsureLoaded(ide);
            var newMonitor = new LaunchMonitor(ide, device, apkPath, packageName, apiLevel, launchFlags, stateUpdate, token);

            monitor = newMonitor;
            newMonitor.Start();
        }
Пример #3
0
 /// <summary>
 /// Make sure this log is registered.
 /// </summary>
 internal static void EnsureLoaded(IIde ide)
 {
     if (log != null)
         return;
     var outputPane = ide.CreateDebugOutputPane();
     var add = false;
     lock (logLock)
     {
         if (log == null)
         {
             log = new OutputPaneLog(outputPane);
             add = true;
         }
     }
     if (add)
     {
         DLog.AddAdditionalLogger(log);                
     }
 }
Пример #4
0
        /// <summary>
        /// Make sure this log is registered.
        /// </summary>
        internal static void EnsureLoaded(IIde ide)
        {
            if (log != null)
            {
                return;
            }
            var outputPane = ide.CreateDebugOutputPane();
            var add        = false;

            lock (logLock)
            {
                if (log == null)
                {
                    log = new OutputPaneLog(outputPane);
                    add = true;
                }
            }
            if (add)
            {
                DLog.AddAdditionalLogger(log);
            }
        }
Пример #5
0
        /// <summary>
        /// Make sure this log is registered.
        /// </summary>
        internal static void EnsureLoaded(IIde ide, bool vsDebugPane)
        {
            if (log != null)
                return;

            var outputPane = !vsDebugPane ? ide.CreateDot42OutputPane() : ide.CreateDebugOutputPane();

            var add = false;
            lock (logLock)
            {
                if (log == null)
                {
                    log = new OutputPaneLog(outputPane, vsDebugPane?Levels.Info : Levels.Error, vsDebugPane?DContext.VSDebuggerMessage:(DContext?) null);
                    add = true;
                }
            }
            if (add)
            {
                AddAdditionalLogger(log);
                if(vsDebugPane)
                    AddToContext(DContext.VSDebuggerMessage, log);
            }
        }