Hi, is there an debugger step over attribute that I can use on
properties? For instance, I have a singlton class with an "Instance"
property:

public MyClass Instance
{
get
{
if (m_instance == null)
{
m_instance = new MyClass();
}

return m_instance;
}
}

It's annoying when i have a function like,
MyClass.Instance.DoSomething(). I have to use the step into command, but
first it steps into the property, then i have to go out of that and step
in again to go into the actual function.

Thanks,

Re: Debugger Step Over Attribute by Vadym

Vadym
Mon Nov 20 09:41:14 CST 2006

SGVsbG8sIE1hcmshDQoNCkhhdmUgeW91IHRyaWVkICJEZWJ1Z2dlclN0ZXBUaHJvdWdoQXR0cmli
dXRlIiBhdHRyaWJ5dGU/DQoNCiBNST4gSGksIGlzIHRoZXJlIGFuIGRlYnVnZ2VyIHN0ZXAgb3Zl
ciBhdHRyaWJ1dGUgdGhhdCBJIGNhbiB1c2Ugb24gDQpNST4gcHJvcGVydGllcz8gRm9yIGluc3Rh
bmNlLCBJIGhhdmUgYSBzaW5nbHRvbiBjbGFzcyB3aXRoIGFuICJJbnN0YW5jZSINCk1JPiBwcm9w
ZXJ0eToNCg0KTUk+IHB1YmxpYyBNeUNsYXNzIEluc3RhbmNlDQpNST4gew0KTUk+IGdldA0KTUk+
IHsNCk1JPiBpZiAobV9pbnN0YW5jZSA9PSBudWxsKQ0KTUk+IHsNCk1JPiBtX2luc3RhbmNlID0g
bmV3IE15Q2xhc3MoKTsNCk1JPiB9DQoNCk1JPiByZXR1cm4gbV9pbnN0YW5jZTsNCk1JPiB9DQpN
ST4gfQ0KDQpNST4gSXQncyBhbm5veWluZyB3aGVuIGkgaGF2ZSBhIGZ1bmN0aW9uIGxpa2UsIA0K
TUk+IE15Q2xhc3MuSW5zdGFuY2UuRG9Tb21ldGhpbmcoKS4gSSBoYXZlIHRvIHVzZSB0aGUgc3Rl
cCBpbnRvIGNvbW1hbmQsDQpNST4gYnV0IA0KTUk+IGZpcnN0IGl0IHN0ZXBzIGludG8gdGhlIHBy
b3BlcnR5LCB0aGVuIGkgaGF2ZSB0byBnbyBvdXQgb2YgdGhhdCBhbmQNCk1JPiBzdGVwIA0KTUk+
IGluIGFnYWluIHRvIGdvIGludG8gdGhlIGFjdHVhbCBmdW5jdGlvbi4NCg0KTUk+IFRoYW5rcywN
Cg0KLS0NClJlZ2FyZHMsIFZhZHltIFN0ZXRzeWFrDQp3d3c6IGh0dHA6Ly92YWRteXN0LmJsb2dz
cG90LmNvbQ==


Re: Debugger Step Over Attribute by Mark

Mark
Mon Nov 20 11:12:18 CST 2006

Vadym Stetsyak wrote:
> Hello, Mark!
>
> Have you tried "DebuggerStepThroughAttribute" attribyte?
>

Hi, thanks, but that only works on functions! A Bit annoying because it
does what I need perfectly!

I am toying with making my own attribute class to enable the same
functionality, but just for properties.

Re: Debugger Step Over Attribute by Vadym

Vadym
Tue Nov 21 01:39:17 CST 2006

SGVsbG8sIE1hcmshDQoNCklJUkMgdGhlcmUgaXMgbm8gcHJvYmxlbSB3aXRoIHByb3BlcnRpZXMu
DQoNCmUuZy4gDQpwdWJsaWMgc3RhdGljIE15U2luZ2xldG9uIEluc3RhbmNlDQp7DQogICAgW0Rl
YnVnZ2VyU3RlcFRocm91Z2hdDQogICAgZ2V0IHsgcmV0dXJuIGluc3RhbmNlOyB9DQp9DQoNCiBN
ST4gVmFkeW0gU3RldHN5YWsgd3JvdGU6DQo+PiBIZWxsbywgTWFyayENCg0KPj4gSGF2ZSB5b3Ug
dHJpZWQgIkRlYnVnZ2VyU3RlcFRocm91Z2hBdHRyaWJ1dGUiIGF0dHJpYnl0ZT8NCg0KDQpNST4g
SGksIHRoYW5rcywgYnV0IHRoYXQgb25seSB3b3JrcyBvbiBmdW5jdGlvbnMhIEEgQml0IGFubm95
aW5nIGJlY2F1c2UNCk1JPiBpdCANCk1JPiBkb2VzIHdoYXQgSSBuZWVkIHBlcmZlY3RseSENCg0K
TUk+IEkgYW0gdG95aW5nIHdpdGggbWFraW5nIG15IG93biBhdHRyaWJ1dGUgY2xhc3MgdG8gZW5h
YmxlIHRoZSBzYW1lIA0KTUk+IGZ1bmN0aW9uYWxpdHksIGJ1dCBqdXN0IGZvciBwcm9wZXJ0aWVz
Lg0KDQotLQ0KUmVnYXJkcywgVmFkeW0gU3RldHN5YWsNCnd3dzogaHR0cDovL3ZhZG15c3QuYmxv
Z3Nwb3QuY29t


Re: Debugger Step Over Attribute by Mark

Mark
Tue Nov 21 04:50:06 CST 2006

Vadym Stetsyak wrote:
> Hello, Mark!
>
> IIRC there is no problem with properties.
>
> e.g.
> public static MySingleton Instance
> {
> [DebuggerStepThrough]
> get { return instance; }
> }
>
> MI> Vadym Stetsyak wrote:
>
>>>Hello, Mark!
>
>
>>>Have you tried "DebuggerStepThroughAttribute" attribyte?
>
>
>
> MI> Hi, thanks, but that only works on functions! A Bit annoying because
> MI> it
> MI> does what I need perfectly!
>
> MI> I am toying with making my own attribute class to enable the same
> MI> functionality, but just for properties.
>
> --
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot.com

Ahh brilliant, I was placing the attribute above the property
definition, not above the getter / setter.

Thanks very much! :)