本文整理汇总了C#中DebuggerFeatures类的典型用法代码示例。如果您正苦于以下问题:C# DebuggerFeatures类的具体用法?C# DebuggerFeatures怎么用?C# DebuggerFeatures使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DebuggerFeatures类属于命名空间,在下文中一共展示了DebuggerFeatures类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DebuggerEngine
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 + ")");
}
}
}
示例2: CanExecute
public bool CanExecute (ExecutionCommand command)
{
SupportedFeatures = DebuggingService.GetSupportedFeaturesForCommand (command);
return SupportedFeatures != DebuggerFeatures.None;
}
示例3: IsFeatureSupported
public static bool IsFeatureSupported (DebuggerFeatures feature)
{
foreach (DebuggerEngine engine in GetDebuggerEngines ())
if ((engine.SupportedFeatures & feature) == feature)
return true;
return false;
}
示例4: CurrentSessionSupportsFeature
public static bool CurrentSessionSupportsFeature (DebuggerFeatures feature)
{
return (currentEngine.SupportedFeatures & feature) == feature;
}
示例5: Supports
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();
}
}
示例6: Supports
public abstract bool Supports(DebuggerFeatures feature);
示例7: Supports
public override bool Supports(DebuggerFeatures feature)
{
return true;
}