Go Back
6 Votes

Traditional Synergy In Visual Studio Debugger Should Support Class Properties


Consider the following Toy Program
 

namespace MyNameSpace

	public class MyClass

		private mCustomer		,a4
		public property Customer, a4
			method get
			proc
				mreturn mCustomer
			endmethod
			method set
			proc
				mCustomer = value
			endmethod
		endproperty
		
		private mCustomerName	,a50
		public property Name, a50	
			method get
			proc
				mreturn mCustomerName
			endmethod
			method set
			proc
				mCustomerName = value
			endmethod
		endproperty
	endclass
endnamespace
main

proc
	begin
		data testClass	,@MyClass, new MyClass()

		testClass.Customer = "1111"
		testClass.Name = "This is My Name"

		nop
	end
endmain

Attempting to Evaluate (Either via Quick Watch or Immediate Window or any other method) or "Hover Debug" any of the Class Properties does not work; the Debugger can only show you the backing properties which is not always useful in complex object types.

This really should work as expected.

Here is a GIF Showing this in action:
User-added image
 

0 Comments | Posted by Ace Olszowka to Synergy DBL, Visual Studio Integration on 1/11/2019 4:01 PM
Please log in to comment on this idea.