protected override void Run()
        {
            var doc = IdeApp.Workbench.ActiveDocument;

            if (DebuggingService.IsPaused)
            {
                DebuggingService.RunToCursor(doc.FileName, doc.Editor.CaretLine, doc.Editor.CaretColumn);
                return;
            }

            var bp = new RunToCursorBreakpoint(doc.FileName, doc.Editor.CaretLine, doc.Editor.CaretColumn);

            DebuggingService.Breakpoints.Add(bp);
            DebugHandler.BuildAndDebug();
        }
Ejemplo n.º 2
0
		protected override void Run ()
		{
			var doc = IdeApp.Workbench.ActiveDocument;

			if (DebuggingService.IsPaused) {
				DebuggingService.RunToCursor (doc.FileName, doc.Editor.CaretLine, doc.Editor.CaretColumn);
				return;
			}

			if (IdeApp.Workspace.IsOpen) {
				var bp = new RunToCursorBreakpoint (doc.FileName, doc.Editor.CaretLine, doc.Editor.CaretColumn);
				DebuggingService.Breakpoints.Add (bp);
				var target = DebugHandler.GetRunTarget ();
				if (target != null)
					IdeApp.ProjectOperations.Debug (target);
			}
		}
Ejemplo n.º 3
0
        protected override void Run()
        {
            var doc      = IdeApp.Workbench.ActiveDocument;
            var textView = doc.GetContent <ITextView> (true);

            var(caretLine, caretColumn) = textView.MDCaretLineAndColumn();
            if (DebuggingService.IsPaused)
            {
                DebuggingService.RunToCursor(doc.FileName, caretLine, caretColumn);
                return;
            }

            if (IdeApp.Workspace.IsOpen)
            {
                var bp = new RunToCursorBreakpoint(doc.FileName, caretLine, caretColumn);
                DebuggingService.Breakpoints.Add(bp);
                var target = DebugHandler.GetRunTarget();
                if (target != null)
                {
                    IdeApp.ProjectOperations.Debug(target);
                }
            }
        }