Beispiel #1
0
        private bool ToggleBreakpoint(BreakpointItem breakpoint)
        {
            bool isInDebugMode = false;

            if (IsExecutionActive(ref isInDebugMode) == false)
            {
                return(true);
            }
            if (IsExecutionInProgress() != false)
            {
                return(false); // Can't set breakpoint now!
            }
            CodePoint codePoint = new CodePoint();

            codePoint.CharNo = breakpoint.Column;
            codePoint.LineNo = breakpoint.Line;
            CodeFile script = new CodeFile();

            script.FilePath          = breakpoint.AbsolutePath;
            codePoint.SourceLocation = script;

            return(executionSession.SetBreakpointAt(codePoint));
        }