AvalonStudio.Debugging.WatchListViewModel.AddWatch C# (CSharp) Method

AddWatch() public method

public AddWatch ( string expression ) : void
expression string
return void
		public async void AddWatch(string expression)
		{
			var newWatch =
				await
					_debugManager.CurrentDebugger.CreateWatchAsync(
						string.Format("var{0}", _debugManager.CurrentDebugger.GetVariableId()), expression);

			if (newWatch != null)
			{
				Add(newWatch);
			}
		}