Ejemplo n.º 1
0
 public static bool IsFeatureSupported(DebuggerFeatures feature)
 {
     foreach (DebuggerEngine engine in GetDebuggerEngines())
     {
         if ((engine.SupportedFeatures & feature) == feature)
         {
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 2
0
		internal DebuggerEngine (DebuggerEngineExtensionNode node)
		{
			this.node = node;
			
			foreach (string s in node.SupportedFeatures) {
				try {
					object res = Enum.Parse (typeof(DebuggerFeatures), s, true);
					if (res != null)
						SupportedFeatures |= (DebuggerFeatures) res;
				} catch {
					LoggingService.LogError ("Invalid feature '" + s + "' in debugger engine node (" + node.Addin.Id + ")");
				}
			}
		}
Ejemplo n.º 3
0
        internal DebuggerEngine(DebuggerEngineExtensionNode node)
        {
            this.node = node;

            foreach (string s in node.SupportedFeatures)
            {
                try {
                    object res = Enum.Parse(typeof(DebuggerFeatures), s, true);
                    if (res != null)
                    {
                        SupportedFeatures |= (DebuggerFeatures)res;
                    }
                } catch {
                    LoggingService.LogError("Invalid feature '" + s + "' in debugger engine node (" + node.Addin.Id + ")");
                }
            }
        }
Ejemplo n.º 4
0
        public override bool Supports(DebuggerFeatures feature)
        {
            switch (feature)
            {
            case DebuggerFeatures.Start:
            case DebuggerFeatures.StartWithoutDebugging:
            case DebuggerFeatures.Stop:
                return(true);

            case DebuggerFeatures.ExecutionControl:
            case DebuggerFeatures.Stepping:
            case DebuggerFeatures.Attaching:
            case DebuggerFeatures.Detaching:
                return(false);

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Ejemplo n.º 5
0
		public static bool CurrentSessionSupportsFeature (DebuggerFeatures feature)
		{
			return (currentEngine.SupportedFeatures & feature) == feature;
		}
Ejemplo n.º 6
0
		public static bool IsFeatureSupported (IBuildTarget target, DebuggerFeatures feature)
		{
			return (GetSupportedFeatures (target) & feature) == feature;
		}
Ejemplo n.º 7
0
 public static bool CurrentSessionSupportsFeature(DebuggerFeatures feature)
 {
     return((currentEngine.SupportedFeatures & feature) == feature);
 }
Ejemplo n.º 8
0
 public static bool IsFeatureSupported(IBuildTarget target, DebuggerFeatures feature)
 {
     return((GetSupportedFeatures(target) & feature) == feature);
 }
 public override bool Supports(DebuggerFeatures feature)
 {
     return(SD.Debugger.Supports(feature));
 }
Ejemplo n.º 10
0
 public override bool Supports(DebuggerFeatures feature)
 {
     switch (feature) {
         case DebuggerFeatures.Start:
         case DebuggerFeatures.StartWithoutDebugging:
         case DebuggerFeatures.Stop:
             return true;
         case DebuggerFeatures.ExecutionControl:
         case DebuggerFeatures.Stepping:
         case DebuggerFeatures.Attaching:
         case DebuggerFeatures.Detaching:
             return false;
         default:
             throw new ArgumentOutOfRangeException();
     }
 }
Ejemplo n.º 11
0
 public override bool Supports(DebuggerFeatures feature)
 {
     return(true);
 }
 public abstract bool Supports(DebuggerFeatures feature);
Ejemplo n.º 13
0
 public abstract bool Supports(DebuggerFeatures feature);
Ejemplo n.º 14
0
		public static bool IsFeatureSupported (DebuggerFeatures feature)
		{
			foreach (DebuggerEngine engine in GetDebuggerEngines ())
				if ((engine.SupportedFeatures & feature) == feature)
					return true;
			return false;
		}
Ejemplo n.º 15
0
 public bool CanExecute(ExecutionCommand command)
 {
     SupportedFeatures = DebuggingService.GetSupportedFeaturesForCommand(command);
     return(SupportedFeatures != DebuggerFeatures.None);
 }
Ejemplo n.º 16
0
		public bool CanExecute (ExecutionCommand command)
		{
			SupportedFeatures = DebuggingService.GetSupportedFeaturesForCommand (command);
			return SupportedFeatures != DebuggerFeatures.None;
		}
Ejemplo n.º 17
0
		public override bool Supports(DebuggerFeatures feature)
		{
			return true;
		}