示例#1
0
 public static bool IsFeatureSupported(DebuggerFeatures feature)
 {
     foreach (DebuggerEngine engine in GetDebuggerEngines())
     {
         if ((engine.SupportedFeatures & feature) == feature)
         {
             return(true);
         }
     }
     return(false);
 }
示例#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 + ")");
				}
			}
		}
示例#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 + ")");
                }
            }
        }
示例#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();
            }
        }
示例#5
0
		public static bool CurrentSessionSupportsFeature (DebuggerFeatures feature)
		{
			return (currentEngine.SupportedFeatures & feature) == feature;
		}
示例#6
0
		public static bool IsFeatureSupported (IBuildTarget target, DebuggerFeatures feature)
		{
			return (GetSupportedFeatures (target) & feature) == feature;
		}
示例#7
0
 public static bool CurrentSessionSupportsFeature(DebuggerFeatures feature)
 {
     return((currentEngine.SupportedFeatures & feature) == feature);
 }
示例#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));
 }
示例#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();
     }
 }
示例#11
0
 public override bool Supports(DebuggerFeatures feature)
 {
     return(true);
 }
 public abstract bool Supports(DebuggerFeatures feature);
 public abstract bool Supports(DebuggerFeatures feature);
示例#14
0
		public static bool IsFeatureSupported (DebuggerFeatures feature)
		{
			foreach (DebuggerEngine engine in GetDebuggerEngines ())
				if ((engine.SupportedFeatures & feature) == feature)
					return true;
			return false;
		}
示例#15
0
 public bool CanExecute(ExecutionCommand command)
 {
     SupportedFeatures = DebuggingService.GetSupportedFeaturesForCommand(command);
     return(SupportedFeatures != DebuggerFeatures.None);
 }
示例#16
0
		public bool CanExecute (ExecutionCommand command)
		{
			SupportedFeatures = DebuggingService.GetSupportedFeaturesForCommand (command);
			return SupportedFeatures != DebuggerFeatures.None;
		}
示例#17
0
		public override bool Supports(DebuggerFeatures feature)
		{
			return true;
		}