Represents a location in the source code on which we can insert a breakpoint. Instances of this class are normally created as the result of a user action such as a method lookup.
예제 #1
0
        protected bool Resolve(DebuggerSession session)
        {
            if (dynamic != null)
            {
                return(true);
            }

            if (Method != null)
            {
                Module       module = session.GetModule(Module);
                MethodSource source = module.FindMethod(Method);

                if (source == null)
                {
                    return(false);
                }

                dynamic = new DynamicSourceLocation(source, source.SourceFile, Line, Column);
                return(true);
            }

            if (FileName != null)
            {
                SourceFile file = session.FindFile(FileName);
                if (file == null)
                {
                    return(false);
                }

                dynamic = new DynamicSourceLocation(file, Line, Column);
                return(true);
            }

            return(false);
        }
예제 #2
0
        protected bool Resolve(DebuggerSession session)
        {
            if (dynamic != null)
                return true;

            if (Method != null) {
                Module module = session.GetModule (Module);
                MethodSource source = module.FindMethod (Method);

                if (source == null)
                    return false;

                dynamic = new DynamicSourceLocation (source, source.SourceFile, Line, Column);
                return true;
            }

            if (FileName != null) {
                SourceFile file = session.FindFile (FileName);
                if (file == null)
                    return false;

                dynamic = new DynamicSourceLocation (file, Line, Column);
                return true;
            }

            return false;
        }
예제 #3
0
 internal void OnTargetExited()
 {
     dynamic = null;
 }
예제 #4
0
 private SourceLocation(DynamicSourceLocation dynamic)
 {
     this.dynamic = dynamic;
 }
예제 #5
0
 private SourceLocation(DynamicSourceLocation dynamic)
 {
     this.dynamic = dynamic;
 }
예제 #6
0
 internal void OnTargetExited()
 {
     dynamic = null;
 }