Inheritance: System.EventArgs
Ejemplo n.º 1
0
        private async void _debugManager_DebugFrameChanged(object sender, FrameChangedEventArgs e)
        {
            var stackVariables = await _debugManager.CurrentDebugger.ListStackVariablesAsync();

            InvalidateLocals(stackVariables);
            await Invalidate(e.VariableChanges);
        }
Ejemplo n.º 2
0
 private void _debugManager_DebugFrameChanged(object sender, FrameChangedEventArgs e)
 {
     Dispatcher.UIThread.InvokeAsync(() => { SetAddress(e.Address); });
 }
		private async void _debugManager_DebugFrameChanged(object sender, FrameChangedEventArgs e)
		{
			var updates = await _debugManager.CurrentDebugger.ListStackFramesAsync();

			Dispatcher.UIThread.InvokeAsync(() => { Update(updates); });
		}
Ejemplo n.º 4
0
 private async void WatchListViewModel_DebugFrameChanged(object sender, FrameChangedEventArgs e)
 {
     await Invalidate(e.VariableChanges);
 }
		private async void WatchListViewModel_DebugFrameChanged(object sender, FrameChangedEventArgs e)
		{
			await Invalidate(e.VariableChanges);
		}
Ejemplo n.º 6
0
 private void _debugManager_DebugFrameChanged(object sender, FrameChangedEventArgs e)
 {
     Dispatcher.UIThread.InvokeAsync(() => { Invalidate(); });
 }
Ejemplo n.º 7
0
		private async void debugger_Stopped(object sender, StopRecord e)
		{
			if (ignoreEvents)
			{
				return;
			}

			switch (e.Reason)
			{
				case StopReason.ExitedNormally:
				case StopReason.Exited:
				case StopReason.ExitedSignalled:
					IsExecuting = false;
					IsUpdating = false;
					StopDebugSession();
					break;

				default:
					IsUpdating = true;

					if (DebugFrameChanged != null)
					{
						var args = new FrameChangedEventArgs();
						args.Address = e.Frame.Address;
						args.VariableChanges = await currentDebugger.UpdateVariablesAsync();

						DebugFrameChanged(this, args);
					}

                    if (e.Frame != null && e.Frame.File != null)
                    {
                        var normalizedPath = e.Frame.File.Replace("\\\\", "\\").NormalizePath();

                        ISourceFile file = null;

                        var document = _shell.GetDocument(normalizedPath);

                        if (document != null)
                        {
                            lastDocument = document;
                            file = document?.ProjectFile;
                        }
                        
                        if (file == null)
                        {
                            file = _shell.CurrentSolution.FindFile(normalizedPath);
                        }

                        if (file != null)
                        {
                            await
                                Dispatcher.UIThread.InvokeTaskAsync(
                                    async () => { lastDocument = document = await _shell.OpenDocument(file, e.Frame.Line, 1, true); });
                        }
                        else
                        {
                            _console.WriteLine("Unable to find file: " + normalizedPath);
                        }
                    }

                    IsUpdating = false;
                    IsExecuting = false;
                    break;
			}
		}
Ejemplo n.º 8
0
 private void _debugManager_DebugFrameChanged(object sender, FrameChangedEventArgs e)
 {
     Dispatcher.UIThread.InvokeAsync(() => { Invalidate(); });
 }
Ejemplo n.º 9
0
        private async void debugger_Stopped(object sender, StopRecord e)
        {
            if (ignoreEvents)
            {
                return;
            }

            switch (e.Reason)
            {
            case StopReason.ExitedNormally:
            case StopReason.Exited:
            case StopReason.ExitedSignalled:
                IsExecuting = false;
                IsUpdating  = false;
                StopDebugSession();
                break;

            default:
                IsUpdating = true;

                if (DebugFrameChanged != null)
                {
                    var args = new FrameChangedEventArgs();
                    args.Address         = e.Frame.Address;
                    args.VariableChanges = await currentDebugger.UpdateVariablesAsync();

                    DebugFrameChanged(this, args);
                }

                if (e.Frame != null && e.Frame.FullFileName != null)
                {
                    var normalizedPath = e.Frame.FullFileName.Replace("\\\\", "\\").NormalizePath();

                    ISourceFile file = null;

                    var document = _shell.GetDocument(normalizedPath);

                    if (document != null)
                    {
                        lastDocument = document;
                        file         = document?.ProjectFile;
                    }

                    if (file == null)
                    {
                        file = _shell.CurrentSolution.FindFile(normalizedPath);
                    }

                    if (file != null)
                    {
                        await
                        Dispatcher.UIThread.InvokeTaskAsync(
                            async() => { lastDocument = document = await _shell.OpenDocument(file, e.Frame.Line, 1, true); });
                    }
                    else
                    {
                        _console.WriteLine("Unable to find file: " + normalizedPath);
                    }
                }

                IsUpdating  = false;
                IsExecuting = false;
                break;
            }
        }
Ejemplo n.º 10
0
        private async void _debugManager_DebugFrameChanged(object sender, FrameChangedEventArgs e)
        {
            var updates = await _debugManager.CurrentDebugger.ListStackFramesAsync();

            Dispatcher.UIThread.InvokeAsync(() => { Update(updates); });
        }
Ejemplo n.º 11
0
 private void RegistersViewModel_DebugFrameChanged(object sender, FrameChangedEventArgs e)
 {
     Dispatcher.UIThread.InvokeAsync(() => { Invalidate(); });
 }
Ejemplo n.º 12
0
		private async void _debugManager_DebugFrameChanged(object sender, FrameChangedEventArgs e)
		{
			var stackVariables = await _debugManager.CurrentDebugger.ListStackVariablesAsync();

            if (stackVariables != null)
            {
                InvalidateLocals(stackVariables);
            }

			await Invalidate(e.VariableChanges);
		}